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

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

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

origin: com.vmware.xenon/xenon-common

  testContextDirect.setTestName("selectOwner() direct").logBefore();
testContext.setTestName("select owner POST").logBefore();
for (URI peerNodeGroupURI : this.host.getNodeGroupMap().values()) {
  URI nodeSelectorURI = UriUtils.buildUri(peerNodeGroupURI,
origin: vmware/xenon

  testContextDirect.setTestName("selectOwner() direct").logBefore();
testContext.setTestName("select owner POST").logBefore();
for (URI peerNodeGroupURI : this.host.getNodeGroupMap().values()) {
  URI nodeSelectorURI = UriUtils.buildUri(peerNodeGroupURI,
origin: vmware/xenon

testContext.setTestName("compute owners for links").logBefore();
for (int i = 0; i < c; i++) {
  String link = UriUtils.buildUriPath(this.replicationTargetFactoryLink,
origin: com.vmware.xenon/xenon-common

testContext.setTestName("compute owners for links").logBefore();
for (int i = 0; i < c; i++) {
  String link = UriUtils.buildUriPath(this.replicationTargetFactoryLink,
origin: com.vmware.xenon/xenon-common

long before = System.nanoTime() / 1000;
TestContext testContext = this.host.testCreate(childCount);
testContext.setTestName("POST replication");
testContext.logBefore();
for (int i = 0; i < childCount; i++) {
origin: vmware/xenon

long before = System.nanoTime() / 1000;
TestContext testContext = this.host.testCreate(childCount);
testContext.setTestName("POST replication");
testContext.logBefore();
for (int i = 0; i < childCount; i++) {
origin: com.vmware.xenon/xenon-common

String testName = "Replication with " + action;
TestContext testContext = this.host.testCreate(testCount);
testContext.setTestName(testName).logBefore();
origin: vmware/xenon

String testName = "Replication with " + action;
TestContext testContext = this.host.testCreate(testCount);
testContext.setTestName(testName).logBefore();
origin: vmware/xenon

patchAndDeleteCtx.setTestName("Concurrent PATCH / DELETE on ODL").logBefore();
for (Entry<URI, ExampleServiceState> e : states.entrySet()) {
  patch = Operation.createPatch(e.getKey())
origin: com.vmware.xenon/xenon-common

ctx.setTestName("DELETE").logBefore();
for (String link : res.documentLinks) {
  Operation del = Operation.createDelete(this.host, link).setCompletion((o, e) -> {
origin: com.vmware.xenon/xenon-common

patchAndDeleteCtx.setTestName("Concurrent PATCH / DELETE on ODL").logBefore();
for (Entry<URI, ExampleServiceState> e : states.entrySet()) {
  patch = Operation.createPatch(e.getKey())
origin: vmware/xenon

ctx.setTestName("DELETE").logBefore();
for (String link : res.documentLinks) {
  Operation del = Operation.createDelete(this.host, link).setCompletion((o, e) -> {
origin: com.vmware.xenon/xenon-common

ctx.setTestName("Request limit validation").logBefore();
AtomicInteger limitFailures = new AtomicInteger();
for (Service s : services) {
origin: vmware/xenon

c.b = 3;
int expectedResult = c.a * c.a + c.b * c.b;
ctx.setTestName("Stateless service POST throughput").logBefore();
origin: vmware/xenon

ctx.setTestName("Request limit validation").logBefore();
AtomicInteger limitFailures = new AtomicInteger();
for (Service s : services) {
origin: com.vmware.xenon/xenon-common

c.b = 3;
int expectedResult = c.a * c.a + c.b * c.b;
ctx.setTestName("Stateless service POST throughput").logBefore();
origin: vmware/xenon

private void doUpdates(URI factoryUri, Integer updateCount) {
  factoryUri = UriUtils.extendUriWithQuery(factoryUri,
      UriUtils.URI_PARAM_ODATA_TOP,
      this.serviceCount * 10 + "");
  ServiceDocumentQueryResult res = this.host.getFactoryState(factoryUri);
  assertEquals(this.serviceCount, (long) res.documentCount);
  TestContext ctx = this.host.testCreate(this.serviceCount * updateCount);
  ctx.setTestName("PATCH").logBefore();
  for (String link : res.documentLinks) {
    for (int i = 0; i < updateCount; i++) {
      ExampleServiceState st = new ExampleServiceState();
      st.name = i + "";
      Operation patch = Operation.createPatch(this.host, link).setBody(st)
          .setCompletion(ctx.getCompletion());
      this.host.send(patch);
    }
  }
  this.host.testWait(ctx);
  ctx.logAfter();
}
origin: com.vmware.xenon/xenon-common

private void doUpdates(URI factoryUri, Integer updateCount) {
  factoryUri = UriUtils.extendUriWithQuery(factoryUri,
      UriUtils.URI_PARAM_ODATA_TOP,
      this.serviceCount * 10 + "");
  ServiceDocumentQueryResult res = this.host.getFactoryState(factoryUri);
  assertEquals(this.serviceCount, (long) res.documentCount);
  TestContext ctx = this.host.testCreate(this.serviceCount * updateCount);
  ctx.setTestName("PATCH").logBefore();
  for (String link : res.documentLinks) {
    for (int i = 0; i < updateCount; i++) {
      ExampleServiceState st = new ExampleServiceState();
      st.name = i + "";
      Operation patch = Operation.createPatch(this.host, link).setBody(st)
          .setCompletion(ctx.getCompletion());
      this.host.send(patch);
    }
  }
  this.host.testWait(ctx);
  ctx.logAfter();
}
origin: com.vmware.xenon/xenon-common

ctx.setTestName("Rate limiting with failure").logBefore();
CompletionHandler c = (o, e) -> {
  if (e != null) {
ctx2.setTestName("Rate limiting with auto-read pause of channels").logBefore();
for (URI serviceUri : states.keySet()) {
  for (int i = 0; i < count; i++) {
ctx3.setTestName("No limit").logBefore();
for (URI serviceUri : states.keySet()) {
  for (int i = 0; i < count; i++) {
origin: vmware/xenon

ctx.setTestName("Rate limiting with failure").logBefore();
CompletionHandler c = (o, e) -> {
  if (e != null) {
ctx2.setTestName("Rate limiting with auto-read pause of channels").logBefore();
for (URI serviceUri : states.keySet()) {
  for (int i = 0; i < count; i++) {
ctx3.setTestName("No limit").logBefore();
for (URI serviceUri : states.keySet()) {
  for (int i = 0; i < count; i++) {
com.vmware.xenon.common.testTestContextsetTestName

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
  • getExpectedFailureCompletion
  • getCompletionDeferred
  • logAfter
  • logBefore
  • logAfter,
  • logBefore,
  • setCheckInterval,
  • waitFor

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Permission (java.security)
    Legacy security code; do not use.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • From CI to AI: The AI layer in your organization
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