You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Matt Benson <gu...@yahoo.com> on 2005/05/20 19:06:23 UTC
XMLValidateTest
I get failures in HEAD. Does anyone else?
Thanks,
Matt
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: XMLValidateTest
Posted by Martijn Kruithof <jm...@kruithof.xs4all.nl>.
I think I got the error, testing currently.
( The validator now ignores the error by returning true prematurely)
Martijn
Martijn Kruithof wrote:
> Martijn Kruithof wrote:
>
>> Matt Benson wrote:
>>
>>> I get failures in HEAD. Does anyone else?
>>>
>>> Thanks,
>>> Matt
>>>
>>>
> Sorry, I meant:
>
> [junit] Testsuite:
> org.apache.tools.ant.taskdefs.optional.XmlValidateTest
> [junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 0,812 sec
>
> [junit] Testcase:
> testXmlSchemaBad(org.apache.tools.ant.taskdefs.optional.Xm
> lValidateTest): FAILED
> [junit] Should throw BuildException because 'Bad Schema Validation'
> [junit] junit.framework.AssertionFailedError: Should throw
> BuildException be
> cause 'Bad Schema Validation'
> [junit] at junit.framework.Assert.fail(Assert.java:47)
> [junit] at
> org.apache.tools.ant.taskdefs.optional.XmlValidateTest.testXm
> lSchemaBad(XmlValidateTest.java:135)
> [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:324)
> [junit] at junit.framework.TestCase.runTest(TestCase.java:154)
> [junit] at junit.framework.TestCase.runBare(TestCase.java:127)
> [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:118)
> [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
> [junit] at junit.framework.TestSuite.run(TestSuite.java:203)
> [junit] at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: XMLValidateTest
Posted by Martijn Kruithof <jm...@kruithof.xs4all.nl>.
Martijn Kruithof wrote:
> Matt Benson wrote:
>
>> I get failures in HEAD. Does anyone else?
>>
>> Thanks,
>> Matt
>>
>>
Sorry, I meant:
[junit] Testsuite:
org.apache.tools.ant.taskdefs.optional.XmlValidateTest
[junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 0,812 sec
[junit] Testcase:
testXmlSchemaBad(org.apache.tools.ant.taskdefs.optional.Xm
lValidateTest): FAILED
[junit] Should throw BuildException because 'Bad Schema Validation'
[junit] junit.framework.AssertionFailedError: Should throw
BuildException be
cause 'Bad Schema Validation'
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at
org.apache.tools.ant.taskdefs.optional.XmlValidateTest.testXm
lSchemaBad(XmlValidateTest.java:135)
[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:324)
[junit] at junit.framework.TestCase.runTest(TestCase.java:154)
[junit] at junit.framework.TestCase.runBare(TestCase.java:127)
[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:118)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:208)
[junit] at junit.framework.TestSuite.run(TestSuite.java:203)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: XMLValidateTest
Posted by Martijn Kruithof <jm...@kruithof.xs4all.nl>.
Matt Benson wrote:
>I get failures in HEAD. Does anyone else?
>
>Thanks,
>Matt
>
>
Yes,
[junit] Testsuite:
org.apache.tools.ant.taskdefs.optional.SchemaValidateTest
[junit] Tests run: 9, Failures: 0, Errors: 1, Time elapsed: 1,343 sec
[junit] Testcase:
testFileset(org.apache.tools.ant.taskdefs.optional.SchemaV
alidateTest): Caused an ERROR
[junit]
C:\java_stuff\eclipse\workspace\ant\src\etc\testcases\taskdefs\optio
nal\xml\endpiece.xml is not a valid XML document.
[junit]
C:\java_stuff\eclipse\workspace\ant\src\etc\testcases\taskdefs\optio
nal\schemavalidate.xml:74:
C:\java_stuff\eclipse\workspace\ant\src\etc\testcases
\taskdefs\optional\xml\endpiece.xml is not a valid XML document.
[junit] at
org.apache.tools.ant.taskdefs.optional.XMLValidateTask.doVali
date(XMLValidateTask.java:545)
[junit] at
org.apache.tools.ant.taskdefs.optional.XMLValidateTask.execut
e(XMLValidateTask.java:312)
[junit] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
[junit] at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown
Source)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:324)
[junit] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:104)
[junit] at org.apache.tools.ant.Task.perform(Task.java:365)
[junit] at org.apache.tools.ant.Target.execute(Target.java:340)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:368)
[junit] at
org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
[junit] at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[junit] at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTes
t.java:254)
[junit] at
org.apache.tools.ant.taskdefs.optional.SchemaValidateTest.tes
tFileset(SchemaValidateTest.java:96)
[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:324)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org