|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.test.UnitTestBaseImpl
Provide all of the default implementation code. All a subclass needs to do is extend this and provide a main method.
Field Summary | |
TestContext |
testContext
|
Constructor Summary | |
UnitTestBaseImpl()
|
Method Summary | |
UnitTest |
createTest(java.lang.String methodName,
TestContext context)
|
void |
removeFile(java.lang.String fileName)
If the file provided exists, remove it from the system. |
void |
setUp(java.lang.String methodName,
TestContext context)
The JUnit setup method |
void |
tearDown(TestContext context)
The teardown method for JUnit |
void |
writeFile(java.lang.String fileName,
java.lang.String contents)
Helper method to allow a quick creation of a file. |
java.io.File |
writeFileResource(java.lang.String fileName,
java.lang.Class resourceTarget,
java.lang.String contents)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public TestContext testContext
Constructor Detail |
public UnitTestBaseImpl()
Method Detail |
public void setUp(java.lang.String methodName, TestContext context) throws java.lang.Exception
setUp
in interface UnitTest
methodName
- The new Up valuecontext
- The new Up value
java.lang.Exception
public void tearDown(TestContext context) throws java.lang.Exception
tearDown
in interface UnitTest
context
-
java.lang.Exception
public UnitTest createTest(java.lang.String methodName, TestContext context)
createTest
in interface UnitTest
methodName
- context
-
public java.io.File writeFileResource(java.lang.String fileName, java.lang.Class resourceTarget, java.lang.String contents) throws java.io.IOException
fileName
- resourceTarget
- contents
-
java.io.IOException
public void writeFile(java.lang.String fileName, java.lang.String contents) throws java.io.IOException
fileName
- contents
-
java.io.IOException
public void removeFile(java.lang.String fileName)
fileName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |