ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zheng yiyu" <digua...@gmail.com>
Subject Re: AW: Hi I need some help
Date Thu, 28 Sep 2006 01:38:43 GMT
On 9/28/06, zheng yiyu <digua009@gmail.com> wrote:
>
> I run all the test , but one testcase failed on JDK1.5.0_06
> the info is
>
>
>     [junit] Testsuite: org.apache.tools.ant.AntClassLoaderTest
>     [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 0.297 sec
>
>     [junit] Testcase: testJarWithManifestInNonAsciiDir(
> org.apache.tools.ant.AntC
> lassLoaderTest):        FAILED
>     [junit]
> expected:<...es\core\??nt\main.jar[;D:\Java\workspace\ant\trunk\src\
> etc\testcases\core\??nt\ext\ext.jar]> but was:<...es\core\??nt\main.jar[]>
>
>     [junit] junit.framework.ComparisonFailure:
> expected:<...es\core\??nt\main.ja
> r[;D:\Java\workspace\ant\trunk\src\etc\testcases\core\??nt\ext\ext.jar]>
> but was
> :<...es\core\??nt\main.jar[]>
>     [junit]     at junit.framework.Assert.assertEquals(Assert.java:81)
>     [junit]     at junit.framework.Assert.assertEquals(Assert.java:87)
>     [junit]     at
> org.apache.tools.ant.AntClassLoaderTest.testJarWithManifestIn
> NonAsciiDir( AntClassLoaderTest.java:65)
>     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAcces
> sorImpl.java:39)
>     [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMet
> hodAccessorImpl.java:25)
>     [junit]     at java.lang.reflect.Method.invoke(Method.java:585)
>     [junit]     at junit.framework.TestCase.runTest(TestCase.java :164)
>     [junit]     at junit.framework.TestCase.runBare(TestCase.java:130)
>     [junit]     at junit.framework.TestResult$1.protect(TestResult.java
> :106)
>     [junit]     at junit.framework.TestResult.runProtected (
> TestResult.java:124)
>     [junit]     at junit.framework.TestResult.run(TestResult.java:109)
>     [junit]     at junit.framework.TestCase.run(TestCase.java:120)
>     [junit]     at junit.framework.TestSuite.runTest (TestSuite.java:230)
>     [junit]     at junit.framework.TestSuite.run(TestSuite.java:225)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
> run(JUnitTestRunner.java:362)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
> eInVM(JUnitTask.java:1207)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
> e(JUnitTask.java:791)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
> eOrQueue(JUnitTask.java:1599)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
> e(JUnitTask.java:741)
>     [junit]     at org.apache.tools.ant.UnknownElement.execute(
> UnknownElement.ja
> va:279)
>     [junit]     at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown
> Source)
>     [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
>     [junit]     at java.lang.reflect.Method.invoke(Method.java:585)
>     [junit]     at org.apache.tools.ant.dispatch.DispatchUtils.execute
> (DispatchU
> tils.java:105)
>     [junit]     at org.apache.tools.ant.Task.perform(Task.java:342)
>     [junit]     at org.apache.tools.ant.taskdefs.Sequential.execute(
> Sequential.j
> ava:62)
>     [junit]     at org.apache.tools.ant.UnknownElement.execute(
> UnknownElement.ja
> va:279)
>     [junit]     at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown
> Source)
>     [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMet
> hodAccessorImpl.java:25)
>     [junit]     at java.lang.reflect.Method.invoke(Method.java:585)
>     [junit]     at org.apache.tools.ant.dispatch.DispatchUtils.execute
> (DispatchU
> tils.java:105)
>     [junit]     at org.apache.tools.ant.Task.perform(Task.java:342)
>     [junit]     at org.apache.tools.ant.taskdefs.MacroInstance.execute
> (MacroInst
> ance.java:394)
>     [junit]     at org.apache.tools.ant.UnknownElement.execute(
> UnknownElement.ja
> va:279)
>     [junit]     at sun.reflect.GeneratedMethodAccessor21.invoke (Unknown
> Source)
>     [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMet
> hodAccessorImpl.java:25)
>     [junit]     at java.lang.reflect.Method.invoke(Method.java:585)
>     [junit]     at org.apache.tools.ant.dispatch.DispatchUtils.execute
> (DispatchU
> tils.java:105)
>     [junit]     at org.apache.tools.ant.Task.perform(Task.java:342)
>     [junit]     at org.apache.tools.ant.Target.execute(Target.java:357)
>     [junit]     at org.apache.tools.ant.Target.performTasks(Target.java
> :385)
>     [junit]     at org.apache.tools.ant.Project.executeSortedTargets(
> Project.jav
> a:1282)
>     [junit]     at org.apache.tools.ant.Project.executeTarget (
> Project.java:1251)
>
>     [junit]     at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
> faultExecutor.java:41)
>     [junit]     at org.apache.tools.ant.Project.executeTargets(
> Project.java:1134
> )
>     [junit]     at org.apache.tools.ant.Main.runBuild(Main.java:698)
>     [junit]     at org.apache.tools.ant.Main.startAnt(Main.java:199)
>     [junit]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:300)
>     [junit]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java
> :106)
>
>
> is there anything need to configure ? Or I just missed another jar ?
>
>
> On 9/27/06, Kevin Jackson <foamdino@gmail.com> wrote:
> >
> > Hi,
> >
> > You get this problem if you don't include the junit.jar in dist/lib.
> > Just copy that jar in there and then your tests will run
> >
> > Thanks
> > Kev
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > For additional commands, e-mail: dev-help@ant.apache.org
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message