java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.hivemind.test.HiveMindTestCase
hivemind.test.FrameworkTestCase
hivemind.test.ant.TestConstructRegistry
- All Implemented Interfaces:
- junit.framework.Test
- public class TestConstructRegistry
- extends hivemind.test.FrameworkTestCase
Tests for the org.apache.hivemind.ant.ConstructRegistry Ant task.
An earlier version of this suite built using the real hivemodule.xml (in src/META-INF) but that
caused issues because it was constantly changing, so we use a copy
(src/test-data/TestConstructRegistry/master.xml).
These tests are *VERY* dependent on JDK version (really, on the version of the XML parser
provided with the JDK). Therefore, we skip the tests for JDK 1.3.
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class org.apache.hivemind.test.HiveMindTestCase |
addControl, assertExceptionRegexp, assertExceptionSubstring, assertListsEqual, assertListsEqual, assertLoggedMessage, assertLoggedMessage, assertLoggedMessagePattern, assertLoggedMessagePattern, assertLoggedMessages, assertRegexp, buildFrameworkRegistry, buildFrameworkRegistry, buildFrameworkRegistry, buildMinimalRegistry, fabricateLocation, findNestedException, getClassResolver, getControl, getInterceptedLogEvents, getResource, interceptLogging, matches, newControl, newLocation, newMock, replayControls, resetControls, setReturnValue, setReturnValue, setReturnValue, setReturnValue, setReturnValue, setThrowable, tearDown, unreachable, verifyControls |
| 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 |
JDK1_3
private static final boolean JDK1_3
_project
protected org.apache.tools.ant.Project _project
TestConstructRegistry
public TestConstructRegistry()
create
protected org.apache.hivemind.ant.ConstructRegistry create()
testNoFile
public void testNoFile()
throws java.lang.Exception
testNoDescriptors
public void testNoDescriptors()
throws java.lang.Exception
testBasic
public void testBasic()
throws java.lang.Exception
testLocalRefs
public void testLocalRefs()
throws java.lang.Exception
testUptoDate
public void testUptoDate()
throws java.lang.Exception
testJars
public void testJars()
throws java.lang.Exception
compare
protected void compare(java.io.File actual,
java.lang.String expectedPath)
throws java.lang.Exception
readFile
protected java.lang.String readFile(java.io.File f)
throws java.lang.Exception