|
|||||||||
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 mondrian.test.build.AntTestBase
abstract class AntTestBase
Base class for tests that execute Ant targets. Sub-classes
should invoke runAntTest(String)
to run an Ant target. If
the Ant sub-process cannot be started of if it returns an exit code that
indicates error, the test fails.
AntTestBase makes the following assumptions about its run-time environment:
ant
. That is, ant is
on the current PATH.REVIEW: SWZ: 3/11/2006: This class is not portable to Windows. Potential solutions: 1) Check for Windows via System properties and invoke "command.com ant.bat [target]" (or whatever's necessary) when the OS is Windows. 2) Require Ant libraries be on the classpath and invoke Ant's API directly. This is preferred, since it should be OS neutral.
Constructor Summary | |
---|---|
AntTestBase(String name)
Creates an AntTestBase. |
Method Summary | |
---|---|
protected void |
runAntTest(String target)
Runs an ant task. |
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 |
---|
AntTestBase(String name)
name
- Test nameMethod Detail |
---|
protected void runAntTest(String target) throws IOException, InterruptedException
target
- Name of ant target
IOException
InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |