public class RestxSpecTestsRunner extends org.junit.runners.ParentRunner<RestxSpec>
\@RunWith(RestxSpecTestsRunner.class)
\@FindSpecsIn("specs/city")
public class CitySpecTest { }
or
\@RunWith(RestxSpecTestsRunner.class)
public class CitySpecTest extends RestxSpecTests {
public CitySpecTest() {
super(new RestxSpecRule(), RestxSpecTests.findSpecsIn("specs/city"));
}
}
| Constructor and Description |
|---|
RestxSpecTestsRunner(Class<?> testClass)
Constructs a new
RestxSpecTestsRunner that will run @TestClass |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.junit.rules.TestRule> |
classRules() |
protected org.junit.runner.Description |
describeChild(RestxSpec child) |
protected List<RestxSpec> |
getChildren() |
protected void |
runChild(RestxSpec restxSpec,
org.junit.runner.notification.RunNotifier notifier) |
public RestxSpecTestsRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError, IllegalAccessException, InvocationTargetException, InstantiationException, NoSuchFieldException, IOException
RestxSpecTestsRunner that will run @TestClassorg.junit.runners.model.InitializationErrorIllegalAccessExceptionInvocationTargetExceptionInstantiationExceptionNoSuchFieldExceptionIOExceptionprotected List<RestxSpec> getChildren()
getChildren in class org.junit.runners.ParentRunner<RestxSpec>protected org.junit.runner.Description describeChild(RestxSpec child)
describeChild in class org.junit.runners.ParentRunner<RestxSpec>protected List<org.junit.rules.TestRule> classRules()
classRules in class org.junit.runners.ParentRunner<RestxSpec>Copyright © 2017. All Rights Reserved.