org.eclipse.swtbot.swt.finder.junit
Class SWTBotJunit4ClassRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner
- All Implemented Interfaces:
- Describable, Filterable, Sortable
- Direct Known Subclasses:
- SWTBotApplicationLauncherClassRunner
public class SWTBotJunit4ClassRunner
- extends BlockJUnit4ClassRunner
A runner that captures screenshots on test failures. If you wish to launch your application for your tests use
SWTBotApplicationLauncherClassRunner
. Clients are supposed to subclass this. Typical usage is:
@RunWith(SWTBotJunit4ClassRunner.class)
public class FooTest {
@Test
public void canSendEmail() {
}
}
- Version:
- $Id$
- Author:
- Hans Schwaebli (Bug 259787), Toby Weston (Bug 259787)
- See Also:
SWTBotApplicationLauncherClassRunner
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner |
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, methodBlock, methodInvoker, possiblyExpectingExceptions, runChild, testName, validateInstanceMethods, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.junit.runner.manipulation.Filterable |
filter |
Methods inherited from interface org.junit.runner.manipulation.Sortable |
sort |
SWTBotJunit4ClassRunner
public SWTBotJunit4ClassRunner(Class<?> klass)
throws Exception
- Creates a SWTBotRunner to run
klass
- Throws:
Exception
- if the test class is malformed.
run
public void run(RunNotifier notifier)
- Overrides:
run
in class ParentRunner<FrameworkMethod>