Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java-simple-xml-2.7.1 fails on wip-change-default-java8 #61

Open
Boskovits opened this issue Jan 4, 2018 · 5 comments
Open

java-simple-xml-2.7.1 fails on wip-change-default-java8 #61

Boskovits opened this issue Jan 4, 2018 · 5 comments

Comments

@Boskovits
Copy link
Owner

Error:
BUILD FAILED
/tmp/guix-build-java-simple-xml-2.7.1.drv-0/simple-xml-2.7.1/build.xml:41: The following error occurred while executing this line:
/tmp/guix-build-java-simple-xml-2.7.1.drv-0/simple-xml-2.7.1/test/build.xml:44: Test org.simpleframework.xml.convert.RegistryStrategyTest failed

Total time: 13 seconds
phase check' failed after 13.8 seconds note: keeping build directory /tmp/guix-build-java-simple-xml-2.7.1.drv-1'
builder for `/gnu/store/5bnmz5slgagb9j2pq40v6fjsww4zs2rc-java-simple-xml-2.7.1.drv' failed with exit code 1

@Boskovits
Copy link
Owner Author

Test report:

Seems an ordering issue.
The expected result has the dog first, then the cat, but this is reversed.

Testsuite: org.simpleframework.xml.convert.RegistryStrategyTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.195 sec
------------- Standard Output ---------------
<a:petShop xmlns:a="http://domain/a">
<b:pets xmlns:b="http://domain/b">

Kitty
2


</b:pets>
</a:petShop>------------- ---------------- ---------------

Testcase: testConverter took 0.184 sec
FAILED
Document does not match expression '/petShop/pets/pet[1]' with attribute name='Lassie' for <a:petShop xmlns:a="http://domain/a">
<b:pets xmlns:b="http://domain/b">

Kitty
2


</b:pets>
</a:petShop>
junit.framework.AssertionFailedError: Document does not match expression '/petShop/pets/pet[1]' with attribute name='Lassie' for <a:petShop xmlns:a="http://domain/a">
<b:pets xmlns:b="http://domain/b">

Kitty
2


</b:pets>
</a:petShop>
at org.simpleframework.xml.ValidationTestCase.assertMatch(ValidationTestCase.java:179)
at org.simpleframework.xml.ValidationTestCase.assertElementHasAttribute(ValidationTestCase.java:146)
at org.simpleframework.xml.convert.RegistryStrategyTest.testConverter(RegistryStrategyTest.java:69)

@Boskovits
Copy link
Owner Author

Upstream contacted, waiting for their reply.

@Boskovits
Copy link
Owner Author

Temporary fix on commit bb46fc4.

@Boskovits
Copy link
Owner Author

Upstream is tracking this issue as: ngallagher/simplexml#33

@Boskovits
Copy link
Owner Author

Upstream pull request ngallagher/simplexml#15 fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant