Tabnine Logo
TestContext.getExpectedFailureCompletion
Code IndexAdd Tabnine to your IDE (free)

How to use
getExpectedFailureCompletion
method
in
com.vmware.xenon.common.test.TestContext

Best Java code snippets using com.vmware.xenon.common.test.TestContext.getExpectedFailureCompletion (Showing top 11 results out of 315)

origin: vmware/xenon

@Test
public void failureOnReservedSuffixServiceStart() throws Throwable {
  TestContext ctx = this.testCreate(ServiceHost.RESERVED_SERVICE_URI_PATHS.length);
  for (String reservedSuffix : ServiceHost.RESERVED_SERVICE_URI_PATHS) {
    Operation post = Operation.createPost(this.host,
        UUID.randomUUID().toString() + "/" + reservedSuffix)
        .setCompletion(ctx.getExpectedFailureCompletion());
    this.host.startService(post, new MinimalTestService());
  }
  this.testWait(ctx);
}
origin: com.vmware.xenon/xenon-common

@Test
public void failureOnReservedSuffixServiceStart() throws Throwable {
  TestContext ctx = this.testCreate(ServiceHost.RESERVED_SERVICE_URI_PATHS.length);
  for (String reservedSuffix : ServiceHost.RESERVED_SERVICE_URI_PATHS) {
    Operation post = Operation.createPost(this.host,
        UUID.randomUUID().toString() + "/" + reservedSuffix)
        .setCompletion(ctx.getExpectedFailureCompletion());
    this.host.startService(post, new MinimalTestService());
  }
  this.testWait(ctx);
}
origin: vmware/admiral

@Test
public void testInvalidUri() throws Throwable {
  TestContext ctx = host.testCreate(1);
  URI rpPingUri = UriUtils.buildUri(host, "/rp/invalid");
  Operation op = Operation.createGet(rpPingUri)
      .setCompletion(ctx.getExpectedFailureCompletion());
  host.send(op);
  host.testWait(ctx);
}
origin: vmware/xenon

    .addRequestHeader(Operation.REPLICATION_QUORUM_HEADER,
        (this.nodeCount * 2) + "")
    .setCompletion(ctx.getExpectedFailureCompletion())
    .setBody(body);
this.host.send(patch);
origin: com.vmware.xenon/xenon-common

    .addRequestHeader(Operation.REPLICATION_QUORUM_HEADER,
        (this.nodeCount * 2) + "")
    .setCompletion(ctx.getExpectedFailureCompletion())
    .setBody(body);
this.host.send(patch);
origin: vmware/xenon

    ctx.getExpectedFailureCompletion());
opWithFail.nestCompletion((o, e) -> {
  if (e != null) {
    ctx.getExpectedFailureCompletion());
opWithFailImplicitNest.nestCompletion((o) -> {
Operation opWithFailImplicitNestAndClone = Operation.createGet(this.host.getUri())
    .setCompletion(
        ctx.getExpectedFailureCompletion());
opWithFailImplicitNestAndClone.nestCompletion((o) -> {
  opWithFailImplicitNestAndClone
origin: com.vmware.xenon/xenon-common

    ctx.getExpectedFailureCompletion());
opWithFail.nestCompletion((o, e) -> {
  if (e != null) {
    ctx.getExpectedFailureCompletion());
opWithFailImplicitNest.nestCompletion((o) -> {
Operation opWithFailImplicitNestAndClone = Operation.createGet(this.host.getUri())
    .setCompletion(
        ctx.getExpectedFailureCompletion());
opWithFailImplicitNestAndClone.nestCompletion((o) -> {
  opWithFailImplicitNestAndClone
origin: com.vmware.xenon/xenon-common

@Test
public void startServiceSelfLinkWithStar() throws Throwable {
  setUp(false);
  MinimalTestServiceState initialState = new MinimalTestServiceState();
  initialState.id = this.host.nextUUID();
  TestContext ctx = this.host.testCreate(1);
  Operation startPost = Operation
      .createPost(UriUtils.buildUri(this.host, this.host.nextUUID() + "*"))
      .setBody(initialState).setCompletion(ctx.getExpectedFailureCompletion());
  this.host.startService(startPost, new MinimalTestService());
  this.host.testWait(ctx);
}
origin: vmware/xenon

@Test
public void startServiceSelfLinkWithStar() throws Throwable {
  setUp(false);
  MinimalTestServiceState initialState = new MinimalTestServiceState();
  initialState.id = this.host.nextUUID();
  TestContext ctx = this.host.testCreate(1);
  Operation startPost = Operation
      .createPost(UriUtils.buildUri(this.host, this.host.nextUUID() + "*"))
      .setBody(initialState).setCompletion(ctx.getExpectedFailureCompletion());
  this.host.startService(startPost, new MinimalTestService());
  this.host.testWait(ctx);
}
origin: vmware/xenon

for (URI u : states.keySet()) {
  get = get.clone().setUri(UriUtils.buildAvailableUri(u))
      .setCompletion(ctx.getExpectedFailureCompletion());
  this.host.send(get);
origin: com.vmware.xenon/xenon-common

for (URI u : states.keySet()) {
  get = get.clone().setUri(UriUtils.buildAvailableUri(u))
      .setCompletion(ctx.getExpectedFailureCompletion());
  this.host.send(get);
com.vmware.xenon.common.testTestContextgetExpectedFailureCompletion

Popular methods of TestContext

  • await
  • fail
  • completeIteration
    Consider using #complete(). This method exists for backward compatibility, and may be deprecated/del
  • failIteration
    Consider using #fail(Throwable). This method exists for backward compatibility, and may be deprecate
  • <init>
  • complete
  • getCompletion
  • create
    Consider using #TestContext(int,Duration)This method exists for backward compatibility, and may be d
  • getCompletionDeferred
  • logAfter
  • logBefore
  • setCheckInterval
  • logBefore,
  • setCheckInterval,
  • setTestName,
  • waitFor

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JTable (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now