|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.extensions.jfunc.JFuncAssert | +--junit.extensions.jfunc.VerboseAssert | +--junit.extensions.jfunc.JFuncTestCase
JFuncTestCase works the same as TestCase for most purposes, but it uses JFunc's assert classes which allow for other features like multiple failures and verbose assertions.
TestCase
,
JFuncResult
,
JFuncSuite
Fields inherited from class junit.extensions.jfunc.JFuncAssert |
result |
Constructor Summary | |
JFuncTestCase()
No-arg constructor to enable serialization. |
|
JFuncTestCase(java.lang.String name)
Constructs a test case with the given name. |
Method Summary | |
int |
countTestCases()
Counts the number of test cases executed by run(TestResult result). |
protected junit.framework.TestResult |
createResult()
Creates a default TestResult object |
java.lang.String |
getName()
Gets the name of a TestCase |
java.lang.String |
name()
Deprecated. use getName() |
junit.framework.TestResult |
run()
A convenience method to run this test, collecting the results with a default TestResult object. |
void |
run(junit.framework.TestResult result)
Runs the test case and collects the results in TestResult. |
void |
runBare()
Runs the bare test sequence. |
protected void |
runTest()
Override to run the test and assert its state. |
void |
setName(java.lang.String name)
Sets the name of a TestCase |
protected void |
setUp()
Sets up the fixture, for example, open a network connection. |
static java.lang.String |
shortName(java.lang.Class cl)
|
protected void |
tearDown()
Tears down the fixture, for example, close a network connection. |
java.lang.String |
toString()
Returns a string representation of the test case |
Methods inherited from class junit.extensions.jfunc.VerboseAssert |
vassert, vassert, vassert, vassert, vassert, vassert |
Methods inherited from class junit.extensions.jfunc.JFuncAssert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, getResult, getTest, isFatal, setFatal, setResult, setTest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JFuncTestCase()
public JFuncTestCase(java.lang.String name)
Method Detail |
public int countTestCases()
countTestCases
in interface junit.framework.Test
protected junit.framework.TestResult createResult()
TestResult
public java.lang.String name()
public junit.framework.TestResult run()
TestResult
public void run(junit.framework.TestResult result)
run
in interface junit.framework.Test
public void runBare() throws java.lang.Throwable
java.lang.Throwable
- if any exception is thrownprotected void runTest() throws java.lang.Throwable
java.lang.Throwable
- if any exception is thrownprotected void setUp() throws java.lang.Exception
protected void tearDown() throws java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String shortName(java.lang.Class cl)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |