|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.stjs.testing.driver.JUnitSession
public class JUnitSession
Represents one session of unit testing that may span multiple tests in multiple classes, and performs startup and
cleanup actions based on the JUnit lifecycle.
Since JUnit itself does not provide any easy way to hook into its lifecycle, this class relies on
STJSTestDriverRunner to gather hints about the lifecyle. The lifecycle of the JUnitSession is the following:
| Method Summary | ||
|---|---|---|
List<Browser> |
getBrowsers()
|
|
DriverConfiguration |
getConfig()
|
|
|
getDependency(Class<T> depencencyType)
|
|
static JUnitSession |
getInstance()
|
|
void |
runnerCompleted(STJSTestDriverRunner runner)
Called when the specified runner has finished executing all of its tests. |
|
void |
runnerInstantiated(STJSTestDriverRunner runner)
Called when a runner has been instantiated. |
|
void |
testCompleted(STJSTestDriverRunner runner,
org.junit.runners.model.FrameworkMethod method,
TestResultCollection result)
Called after a JUnit test has been executed by all the browsers |
|
void |
testStarting(STJSTestDriverRunner runner,
org.junit.runners.model.FrameworkMethod method)
Called before a JUnit test is dispatched to the browsers. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JUnitSession getInstance()
public void runnerInstantiated(STJSTestDriverRunner runner)
throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
public void testStarting(STJSTestDriverRunner runner,
org.junit.runners.model.FrameworkMethod method)
public void testCompleted(STJSTestDriverRunner runner,
org.junit.runners.model.FrameworkMethod method,
TestResultCollection result)
public void runnerCompleted(STJSTestDriverRunner runner)
public DriverConfiguration getConfig()
public List<Browser> getBrowsers()
public <T> T getDependency(Class<T> depencencyType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||