public class LightAirSpringRunner
extends org.springframework.test.context.junit4.SpringJUnit4ClassRunner
To enable Light air on a Spring JUnit test, annotate it as follows:
@RunWith(LightAirSpringRunner.class)
public class MyTest {
}
You can use standard spring @
ContextConfiguration to setup test
environment. Then use annotations @Setup, @
Verify to define actions Light air should
take on the test.
Requires dependency org.springframework:spring-test version 2.5 or higher in order to work.
| Constructor and Description |
|---|
LightAirSpringRunner(Class<?> clazz) |
| Modifier and Type | Method and Description |
|---|---|
protected org.junit.runners.model.Statement |
methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test)
Overriding methodInvoker in order to place LightAir's test rules as the
leading ones.
|
createTest, createTestContextManager, getDefaultContextLoaderClassName, getDescription, getExpectedException, getJUnitTimeout, getSpringTimeout, getTestContextManager, isTestMethodIgnored, methodBlock, possiblyExpectingExceptions, run, runChild, withAfterClasses, withAfters, withBeforeClasses, withBefores, withPotentialRepeat, withPotentialTimeoutcollectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructorpublic LightAirSpringRunner(Class<?> clazz) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test)
methodInvoker in class org.junit.runners.BlockJUnit4ClassRunnerCopyright © 2011–2020 Lastware, sro.. All rights reserved.