public class JUnit4StandaloneTestBase
extends java.lang.Object
logger), using the name of the currently executing test method.
setUp(),
tearDown()| Modifier and Type | Field and Description |
|---|---|
protected AcsLogger |
logger
Created in
setUp(), using getLoggerForApplication. |
protected java.lang.String |
testMethodName
Gets derived from
testName. |
TestName |
testName
This field is the JUnit4 "workaround" way to obtain the name of the current test method.
|
| Constructor and Description |
|---|
JUnit4StandaloneTestBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Subclass should override this method, annotate it with
@Before,
and call super.setUp(). |
void |
tearDown()
Subclass should override this method, annotate it with
@After,
and call super.tearDown(). |
public TestName testName
protected java.lang.String testMethodName
testName.protected AcsLogger logger
setUp(), using getLoggerForApplication.
The logger name is set to testMethodName, which also determines the
application name that gets appended to the name of framework loggers (e.g. "scxml@myTestMethodName").public void setUp()
throws java.lang.Exception
@Before,
and call super.setUp().java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
@After,
and call super.tearDown().java.lang.Exception