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

testSerialize fails when running "ant test" #18

Open
Juul opened this issue Sep 27, 2011 · 2 comments
Open

testSerialize fails when running "ant test" #18

Juul opened this issue Sep 27, 2011 · 2 comments

Comments

@Juul
Copy link

Juul commented Sep 27, 2011

The offending line is:

assertEquals(annotation1.getStrand(), annotation2.getStrand());

In the method:

public void assertEqual(SequenceAnnotationImpl annotation1, SequenceAnnotationImpl annotation2)

The relevant output:

[junit] Testcase: testSerialize took 0.246 sec
[junit]     FAILED
[junit] expected:<null> but was:<>
[junit] junit.framework.AssertionFailedError: expected:<null> but was:<>
[junit]     at org.sbolstandard.xml.test.TestMarshalling.assertEqual(TestMarshalling.java:105)
[junit]     at org.sbolstandard.xml.test.TestMarshalling.assertEqual(TestMarshalling.java:97)
[junit]     at org.sbolstandard.xml.test.TestMarshalling.assertEqual(TestMarshalling.java:84)
[junit]     at org.sbolstandard.xml.test.TestMarshalling.assertSerializationEquality(TestMarshalling.java:128)
[junit]     at org.sbolstandard.xml.test.TestMarshalling.testSerialize(TestMarshalling.java:133)
@Juul
Copy link
Author

Juul commented Sep 27, 2011

Just a note about Java version:

java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
OpenJDK Server VM (build 20.0-b11, mixed mode)

@TrevorFSmith
Copy link
Contributor

This is my version (which does not fail):
Java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)

So, it's either Ubuntu or Oracle Java which makes the difference. Do you have an Ubuntu installation with Oracle's Java which you could try, just to see if that's the issue?

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

No branches or pull requests

2 participants