public class MoonshineRunner extends org.junit.runners.BlockJUnit4ClassRunner
Moonshine container.
You can configure the container by annotating the class with
MoonshineConfiguration.
The test class will be instantiated using global Guice injector of the Moonshine container.
| Constructor and Description |
|---|
MoonshineRunner(Class<?> klass) |
| Modifier and Type | Method and Description |
|---|---|
protected List<org.junit.rules.TestRule> |
classRules() |
protected Object |
createTest() |
org.junit.runner.Description |
getDescription() |
protected String |
getName() |
protected List<org.junit.rules.TestRule> |
getTestRules(Object target) |
protected List<org.junit.rules.MethodRule> |
rules(Object target) |
collectInitializationErrors, computeTestMethods, describeChild, getChildren, methodBlock, methodInvoker, possiblyExpectingExceptions, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic MoonshineRunner(Class<?> klass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected Object createTest() throws Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerExceptionprotected List<org.junit.rules.TestRule> classRules()
classRules in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected String getName()
getName in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>public org.junit.runner.Description getDescription()
getDescription in interface org.junit.runner.DescribablegetDescription in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected List<org.junit.rules.TestRule> getTestRules(Object target)
getTestRules in class org.junit.runners.BlockJUnit4ClassRunnerCopyright © 2014 Atteo. All rights reserved.