Running the ImportTaskTest using the JUnit tools in Eclipse, all test fail.
./build.sh -Dtestcase=org.apache.tools.ant.taskdefs.ImportTest run-single-test passes.


Here is the error for testSimpleImport
junit.framework.AssertionFailedError: expecting log to contain "Before importIn imported topAfter import" log was "Trying to override old definition of task classloaderTrying to override old definition of datatype descriptionTrying to override old definition of task importTrying to override old definition of task taskdefBefore importAfter importIn imported top"
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at org.apache.tools.ant.BuildFileTest.assertLogContaining(BuildFileTest.java:118)
at org.apache.tools.ant.taskdefs.ImportTest.testSimpleImport(ImportTest.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)


Any Ideas?

R,
Nick

PS CVS Head of ant.
And Eclipse 2.1.2 Build id: 200311030802




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to