You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Dain Sundstrom (JIRA)" <ji...@apache.org> on 2007/10/03 00:13:50 UTC

[jira] Closed: (OPENEJB-676) [BUILD FAILURE : There are test failures] OpenejbJarTest and ConversionTest are failing when building the code.

     [ https://issues.apache.org/jira/browse/OPENEJB-676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dain Sundstrom closed OPENEJB-676.
----------------------------------

    Resolution: Fixed

Fixed in Trunk.

I changed the TextMap and LocalList to use a LinkedHashMap internally to preserve insertion order.

> [BUILD FAILURE : There are test failures] OpenejbJarTest and ConversionTest are failing when building the code.
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-676
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-676
>             Project: OpenEJB
>          Issue Type: Test
>          Components: build
>    Affects Versions: (trunk/openejb3)
>         Environment: Operating System :    Microsoft Windows XP Professional Version 2002 Service Pack 2
> JDK Details            :    IBM JDK 1.5.0 SR4
> Maven Version       :    2.0.7
> SVN Version          :     1.4.5
>            Reporter: Ashok Poralu
>             Fix For: (trunk/openejb3)
>
>         Attachments: jaxb-output4492xml, jaxb-output4750xml, SaveJaxbOutput.patch.txt
>
>
> The two tests (OpenejbJarTest and ConversionTest ) are failing when building the source code and resulting the BUILD FAILURE.
> Below are the test failure trace .txt  files from container\openejb-jee\target\surefire-reports dir.
> -------------------------------------------------------------------------------
> Test set: org.apache.openejb.jee.oejb2.OpenejbJarTest
> -------------------------------------------------------------------------------
> Tests run: 5, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 1.547 sec <<< FAILURE!
> testValidOpenejbJar(org.apache.openejb.jee.oejb2.OpenejbJarTest)  Time elapsed: 1.047 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<...<ns6:default-subject[ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10]="http://geronimo.ap...> but was:<...<ns6:default-subject[>
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9]="http://geronimo.ap...>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.unmarshalAndMarshal(OpenejbJarTest.java:79)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.unmarshalAndMarshal(OpenejbJarTest.java:68)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.testValidOpenejbJar(OpenejbJarTest.java:48)
> testInvalidOpenejbJar(org.apache.openejb.jee.oejb2.OpenejbJarTest)  Time elapsed: 0.062 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<...<ns6:default-subject[ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10]="http://geronimo.ap...> but was:<...<ns6:default-subject[>
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9]="http://geronimo.ap...>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.unmarshalAndMarshal(OpenejbJarTest.java:82)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.testInvalidOpenejbJar(OpenejbJarTest.java:52)
> testGeronimoOpenejbXml(org.apache.openejb.jee.oejb2.OpenejbJarTest)  Time elapsed: 0.344 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<...    <ns4:openejb-jar[ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"]>
> 	</ns4:openejb-jar...> but was:<...    <ns4:openejb-jar[]>
> 	</ns4:openejb-jar...>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.unmarshalAndMarshal(OpenejbJarTest.java:79)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.unmarshalAndMarshal(OpenejbJarTest.java:68)
> 	at org.apache.openejb.jee.oejb2.OpenejbJarTest.testGeronimoOpenejbXml(OpenejbJarTest.java:56)
> And
> -------------------------------------------------------------------------------
> Test set: org.apache.openejb.jee.oejb2.ConversionTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec <<< FAILURE!
> testConversion(org.apache.openejb.jee.oejb2.ConversionTest)  Time elapsed: 0.047 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<...<ns6:default-subject[ xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns10]="http://geronimo.ap...> but was:<...<ns6:default-subject[>
>             <ns6:realm>foo</ns6:realm>
>             <ns6:id>bar</ns6:id>
>         </ns6:default-subject>
>         <ns6:role-mappings>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r1">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="foo"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns="" role-name="r2">
>                 <ns6:realm realm-name="realm">
>                     <ns6:principal class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" name="bar"/>
>             </ns6:realm>
>           </ns6:role>
>             <ns6:role xmlns:ns9]="http://geronimo.ap...>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.openejb.jee.oejb2.ConversionTest.testConversion(ConversionTest.java:61)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.