Tabnine Logo
InvokeMethod.evaluate
Code IndexAdd Tabnine to your IDE (free)

How to use
evaluate
method
in
org.junit.internal.runners.statements.InvokeMethod

Best Java code snippets using org.junit.internal.runners.statements.InvokeMethod.evaluate (Showing top 2 results out of 315)

origin: apache/zookeeper

  @Override
  public void evaluate() throws Throwable {
    LOG.info("RUNNING TEST METHOD {}", name);
    try {
      super.evaluate();
      Runtime rt = Runtime.getRuntime();
      long usedKB = (rt.totalMemory() - rt.freeMemory()) / 1024;
      LOG.info("Memory used {}", usedKB);
      ThreadGroup tg = Thread.currentThread().getThreadGroup();
      while (tg.getParent() != null) {
        tg = tg.getParent();
      }
      LOG.info("Number of threads {}", tg.activeCount());
    } catch (Throwable t) {
      // The test method threw an exception, but it might be an
      // expected exception as defined in the @Test annotation.
      // Check the annotation and log an appropriate message.
      Test annotation = this.method.getAnnotation(Test.class);
      if (annotation != null && annotation.expected() != null &&
          annotation.expected().isAssignableFrom(t.getClass())) {
        LOG.info("TEST METHOD {} THREW EXPECTED EXCEPTION {}", name,
          annotation.expected());
      } else {
        LOG.info("TEST METHOD FAILED {}", name, t);
      }
      throw t;
    }
    LOG.info("FINISHED TEST METHOD {}", name);
  }
}
origin: com.consol.citrus/citrus-core

  @Override
  public void evaluate() throws Throwable {
    if (AbstractJUnit4CitrusTest.class.isAssignableFrom(testInstance.getClass()) &&
        frameworkMethod instanceof CitrusFrameworkMethod) {
      ((AbstractJUnit4CitrusTest)testInstance).run((CitrusFrameworkMethod) frameworkMethod);
    } else {
      super.evaluate();
    }
  }
}
org.junit.internal.runners.statementsInvokeMethodevaluate

Popular methods of InvokeMethod

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Permission (java.security)
    Legacy security code; do not use.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Top Vim plugins
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