You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Vincent Siveton (JIRA)" <ji...@apache.org> on 2008/05/21 14:37:55 UTC
[jira] Created: (SHINDIG-291) testToXmlOnSimpleClass fails under
IBM JDK
testToXmlOnSimpleClass fails under IBM JDK
------------------------------------------
Key: SHINDIG-291
URL: https://issues.apache.org/jira/browse/SHINDIG-291
Project: Shindig
Issue Type: Bug
Components: RESTful API (Java)
Environment: Maven version: 2.0.9
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32pdev-20070426a)
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20070426 (JIT enabled)
Reporter: Vincent Siveton
Running mvn clean install with IBM JDK, I got:
{noformat}
-------------------------------------------------------------------------------
Test set: org.apache.shindig.social.opensocial.util.BeanXmlConverterTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec <<< FAILURE!
testToXmlOnSimpleClass(org.apache.shindig.social.opensocial.util.BeanXmlConverterTest) Time elapsed: 0.094 sec <<< FAILURE!
junit.framework.ComparisonFailure: null expected:<...rtest$simpleperson><[id>5</id><name>robot</name]></beanxmlconvertert...> but was:<...rtest$simpleperson><[name>robot</name><id>5</id]></beanxmlconvertert...>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at org.apache.shindig.social.opensocial.util.BeanXmlConverterTest.testToXmlOnSimpleClass(BeanXmlConverterTest.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SHINDIG-291) testToXmlOnSimpleClass fails under
IBM JDK
Posted by "Kevin Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598746#action_12598746 ]
Kevin Brown commented on SHINDIG-291:
-------------------------------------
It looks like the tests require order dependence for the XML, though it doesn't appear that the spec does. Order dependence is hideous, so I think the logical thing here would be to have this test use an XML parser (there's utility code in org.apache.shindig.common.xml to avoid the boilerplate) to verify the output rather than relying on string testing.
> testToXmlOnSimpleClass fails under IBM JDK
> ------------------------------------------
>
> Key: SHINDIG-291
> URL: https://issues.apache.org/jira/browse/SHINDIG-291
> Project: Shindig
> Issue Type: Bug
> Components: RESTful API (Java)
> Environment: Maven version: 2.0.9
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build pwi32pdev-20070426a)
> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20070426 (JIT enabled)
> Reporter: Vincent Siveton
>
> Running mvn clean install with IBM JDK, I got:
> {noformat}
> -------------------------------------------------------------------------------
> Test set: org.apache.shindig.social.opensocial.util.BeanXmlConverterTest
> -------------------------------------------------------------------------------
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec <<< FAILURE!
> testToXmlOnSimpleClass(org.apache.shindig.social.opensocial.util.BeanXmlConverterTest) Time elapsed: 0.094 sec <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<...rtest$simpleperson><[id>5</id><name>robot</name]></beanxmlconvertert...> but was:<...rtest$simpleperson><[name>robot</name><id>5</id]></beanxmlconvertert...>
> at junit.framework.Assert.assertEquals(Assert.java:81)
> at junit.framework.Assert.assertEquals(Assert.java:87)
> at org.apache.shindig.social.opensocial.util.BeanXmlConverterTest.testToXmlOnSimpleClass(BeanXmlConverterTest.java:94)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> at junit.framework.TestCase.runBare(TestCase.java:134)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:124)
> at junit.framework.TestSuite.runTest(TestSuite.java:232)
> at junit.framework.TestSuite.run(TestSuite.java:227)
> at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
> at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SHINDIG-291) testToXmlOnSimpleClass fails under
IBM JDK
Posted by "Cassie Doll (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SHINDIG-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cassie Doll resolved SHINDIG-291.
---------------------------------
Resolution: Fixed
Assignee: Cassie Doll
> testToXmlOnSimpleClass fails under IBM JDK
> ------------------------------------------
>
> Key: SHINDIG-291
> URL: https://issues.apache.org/jira/browse/SHINDIG-291
> Project: Shindig
> Issue Type: Bug
> Components: RESTful API (Java)
> Environment: Maven version: 2.0.9
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build pwi32pdev-20070426a)
> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20070426 (JIT enabled)
> Reporter: Vincent Siveton
> Assignee: Cassie Doll
>
> Running mvn clean install with IBM JDK, I got:
> {noformat}
> -------------------------------------------------------------------------------
> Test set: org.apache.shindig.social.opensocial.util.BeanXmlConverterTest
> -------------------------------------------------------------------------------
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec <<< FAILURE!
> testToXmlOnSimpleClass(org.apache.shindig.social.opensocial.util.BeanXmlConverterTest) Time elapsed: 0.094 sec <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<...rtest$simpleperson><[id>5</id><name>robot</name]></beanxmlconvertert...> but was:<...rtest$simpleperson><[name>robot</name><id>5</id]></beanxmlconvertert...>
> at junit.framework.Assert.assertEquals(Assert.java:81)
> at junit.framework.Assert.assertEquals(Assert.java:87)
> at org.apache.shindig.social.opensocial.util.BeanXmlConverterTest.testToXmlOnSimpleClass(BeanXmlConverterTest.java:94)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> at junit.framework.TestCase.runBare(TestCase.java:134)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:124)
> at junit.framework.TestSuite.runTest(TestSuite.java:232)
> at junit.framework.TestSuite.run(TestSuite.java:227)
> at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
> at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.