incubator-yoko-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darren Middleman" <dmiddle...@gmail.com>
Subject Re: Tools module fails when running the tests
Date Tue, 27 Feb 2007 18:11:45 GMT
Hello Balaji,

I've just checked out a fresh copy of Yoko and I'm not seeing the failures
you mentioned.

It looks from the error messages that you included with your email that the
output is
probably correct but in a different order from what is in the expected
output files that are
part of the test.  For example:

  <corba:member [name="description" idltype="corba:string]"

versus:

  <corba:member [idltype="corba:string" name="description]"

Unfortunately, since I can't see the failure, I can't be 100% sure that this
is the problem.

Cheers,
Darren

On 2/27/07, Mosur Ravi, Balaji <bravi@iona.com> wrote:
>
> Hi,
>
> I checkedout  a fresh copy of yoko & i get a lot of tests failing in the
> tools module, mostly related to comparison of string failures... Is anyone
> else seeing this?
>
> [surefire] testHelloWorldWSDLGeneration(
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest)  Time elapsed:
> 1.148 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<...rba:param mode="in"
> [name="return_message" idltype="corba:string]" />> but was:<...rba:param
> mode="in" [idltype="corba:string" name="return_message]" />>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest.checkWSDLStrings(
> IDLToWSDLGenerationTest.java:92)
>         at
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest.testWSDLGeneration
> (IDLToWSDLGenerationTest.java:70)
>         at
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest.testHelloWorldWSDLGeneration
> (IDLToWSDLGenerationTest.java:130)
>         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:585)
>         at junit.framework.TestCase.runTest(TestCase.java:164)
>         at junit.framework.TestCase.runBare(TestCase.java:130)
>         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:120)
>         at junit.framework.TestSuite.runTest(TestSuite.java:230)
>         at junit.framework.TestSuite.run(TestSuite.java:225)
>         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:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(
> JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(
> JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java
> :215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
>         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:585)
>         at org.apache.maven.surefire.SurefireBooter.main(
> SurefireBooter.java:785)
>
> [surefire] testPrimitivesGeneration(
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest)  Time elapsed:
> 0.594 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<...primitives/typemap"
> [elemtype="corba:string" bound="0]" repositoryID="IDL:...> but
> was:<...primitives/typemap" [bound="0" elemtype="corba:string]"
> repositoryID="IDL:...>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest.checkWSDLStrings(
> IDLToWSDLGenerationTest.java:92)
>         at
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest.testWSDLGeneration
> (IDLToWSDLGenerationTest.java:70)
>         at
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest.testPrimitivesGeneration
> (IDLToWSDLGenerationTest.java:134)
>         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:585)
>         at junit.framework.TestCase.runTest(TestCase.java:164)
>         at junit.framework.TestCase.runBare(TestCase.java:130)
>         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:120)
>         at junit.framework.TestSuite.runTest(TestSuite.java:230)
>         at junit.framework.TestSuite.run(TestSuite.java:225)
>         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:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(
> JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(
> JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java
> :215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
>         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:585)
>         at org.apache.maven.surefire.SurefireBooter.main(
> SurefireBooter.java:785)
>
> [surefire] testExceptionGeneration(
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest)  Time elapsed:
> 0.38 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<      <corba:member
> [name="description" idltype="corba:string]" />> but was:<      <corba:member
> [idltype="corba:string" name="description]" />>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest.checkWSDLStrings(
> IDLToWSDLGenerationTest.java:92)
>         at
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest.testWSDLGeneration
> (IDLToWSDLGenerationTest.java:70)
>         at
> org.apache.yoko.tools.processors.IDLToWSDLGenerationTest.testExceptionGeneration
> (IDLToWSDLGenerationTest.java:138)
>         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:585)
>         at junit.framework.TestCase.runTest(TestCase.java:164)
>         at junit.framework.TestCase.runBare(TestCase.java:130)
>         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:120)
>         at junit.framework.TestSuite.runTest(TestSuite.java:230)
>         at junit.framework.TestSuite.run(TestSuite.java:225)
>         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:585)
>         at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(
> JUnitBattery.java:242)
>         at org.apache.maven.surefire.battery.JUnitBattery.execute(
> JUnitBattery.java:216)
>         at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java
> :215)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:63)
>         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:585)
>         at org.apache.maven.surefire.SurefireBooter.main(
> SurefireBooter.java:785)
>

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