com.atlassian.webdriver.testing.simpleserver
Class SimpleServerRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by com.atlassian.webdriver.testing.runner.AbstractInjectingRunner
                  extended by com.atlassian.webdriver.testing.runner.AbstractProductContextRunner
                      extended by com.atlassian.webdriver.testing.runner.ProductContextRunner
                          extended by com.atlassian.webdriver.testing.simpleserver.SimpleServerRunner
All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class SimpleServerRunner
extends ProductContextRunner

Product context runner extension that starts an embedded server before instantiating the product.

Since:
2.1
See Also:
SimpleServer

Constructor Summary
SimpleServerRunner(Class<?> klass)
          Constructor compatible with the underlying default JUnit4 runner.
 
Method Summary
protected  org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
           
protected  TestedProduct<?> createProduct(Class<? extends TestedProduct<?>> testedProductClass)
          Override to implement custom factory method for tested product.
 
Methods inherited from class com.atlassian.webdriver.testing.runner.ProductContextRunner
getProduct
 
Methods inherited from class com.atlassian.webdriver.testing.runner.AbstractProductContextRunner
getInjectionContext
 
Methods inherited from class com.atlassian.webdriver.testing.runner.AbstractInjectingRunner
methodInvoker
 
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
 
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
 
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 Detail

SimpleServerRunner

public SimpleServerRunner(Class<?> klass)
                   throws org.junit.runners.model.InitializationError
Constructor compatible with the underlying default JUnit4 runner.

Throws:
org.junit.runners.model.InitializationError - if the test class is malformed.
Method Detail

createProduct

protected TestedProduct<?> createProduct(Class<? extends TestedProduct<?>> testedProductClass)
Description copied from class: ProductContextRunner
Override to implement custom factory method for tested product.

Overrides:
createProduct in class ProductContextRunner
Parameters:
testedProductClass - tested product class
Returns:
tested product instance

classBlock

protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
Overrides:
classBlock in class AbstractInjectingRunner


Copyright © 2014 Atlassian. All rights reserved.