Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-676

[BUILD FAILURE : There are test failures] OpenejbJarTest and ConversionTest are failing when building the code.

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.7.0
    • 4.7.0
    • build
    • None
    • 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

    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)

      Attachments

        1. SaveJaxbOutput.patch.txt
          2 kB
          David Blevins
        2. jaxb-output4750xml
          42 kB
          karan singh malhi
        3. jaxb-output4492xml
          42 kB
          karan singh malhi

        Activity

          People

            Unassigned Unassigned
            ashok poralu Ashok Poralu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: