Details
Description
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)