public class WisdomRunner
extends org.junit.runners.BlockJUnit4ClassRunner
implements org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
| Modifier and Type | Field and Description |
|---|---|
private InVivoRunner |
delegate |
private static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
WisdomRunner(Class<?> klass) |
| Modifier and Type | Method and Description |
|---|---|
private File |
checkWisdomInstallation() |
protected Object |
createTest() |
private File |
detectApplicationBundleIfExist(File directory)
Checks if a file having somewhat the current tested application name is contained in the given directory.
|
void |
filter(org.junit.runner.manipulation.Filter filter) |
org.junit.runner.Description |
getDescription() |
private static Properties |
getMavenProperties()
We should have generated a target/osgi/osgi.properties file will all the metadata we inherit from Maven.
|
void |
run(org.junit.runner.notification.RunNotifier notifier) |
void |
sort(org.junit.runner.manipulation.Sorter sorter) |
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutprivate static final org.slf4j.Logger LOGGER
private final InVivoRunner delegate
private File detectApplicationBundleIfExist(File directory) throws IOException
artifactId-version.jar. If the version ends with -SNAPSHOT,
it just checks for artifactId-stripped_version, where stripped version is the version without the
SNAPSHOT part.
The artifactId and version are read from the target/osgi/osgi.properties file,
that should have been written by the Wisdom build process.directory - the directoryIOException - if something bad happens.private static Properties getMavenProperties() throws IOException
IOExceptionprivate File checkWisdomInstallation()
protected Object createTest() throws Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerExceptionpublic void run(org.junit.runner.notification.RunNotifier notifier)
run 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>public void filter(org.junit.runner.manipulation.Filter filter)
throws org.junit.runner.manipulation.NoTestsRemainException
filter in interface org.junit.runner.manipulation.Filterablefilter in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>org.junit.runner.manipulation.NoTestsRemainExceptionpublic void sort(org.junit.runner.manipulation.Sorter sorter)
sort in interface org.junit.runner.manipulation.Sortablesort in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>Copyright © 2013–2014 Wisdom Framework. All rights reserved.