|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase net.sf.antcontrib.cpptasks.TestXMLConsumer
public abstract class TestXMLConsumer
Base class for tests on classes that consume or public XML documents.
Constructor Summary | |
---|---|
protected |
TestXMLConsumer(java.lang.String testName)
|
Method Summary | |
---|---|
static void |
copyResourceToTmpDir(java.lang.String resourceName,
java.lang.String tmpFile)
copies a resource to a temporary directory. |
static void |
deleteTmpFile(java.lang.String tmpName)
Deletes a file, if it exists, from the user's temporary directory. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected TestXMLConsumer(java.lang.String testName)
testName
- Method Detail |
---|
public static final void copyResourceToTmpDir(java.lang.String resourceName, java.lang.String tmpFile) throws java.io.IOException
resourceName
- resouce name, such as "files/openshore/history.xml".tmpFile
- name for temporary file created in /tmp or similar.
java.io.IOException
public static void deleteTmpFile(java.lang.String tmpName) throws java.io.IOException
tmpName
- file name, may not be null
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |