Class TomcatServerJunit4Runner

java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
com.github.mjeanroy.junit.servers.junit4.JunitServerRunner
com.github.mjeanroy.junit.servers.tomcat10.junit4.TomcatServerJunit4Runner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable

public class TomcatServerJunit4Runner extends JunitServerRunner
Rule that can be used to start and stop embedded tomcat server.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create runner.
  • Method Summary

    Methods inherited from class com.github.mjeanroy.junit.servers.junit4.JunitServerRunner

    classRules, getTestRules

    Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner

    collectInitializationErrors, computeTestMethods, createTest, createTest, describeChild, getChildren, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout

    Methods inherited from class org.junit.runners.ParentRunner

    childrenInvoker, classBlock, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation

    Methods inherited from class org.junit.runner.Runner

    testCount

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TomcatServerJunit4Runner

      public TomcatServerJunit4Runner(Class<?> klass) throws org.junit.runners.model.InitializationError
      Create runner.
      Parameters:
      klass - Running class.
      Throws:
      org.junit.runners.model.InitializationError - If an error occurred while starting embedded server.