Skip to content

testSerialize fails when running "ant test" #18

Open

Description

@Juul

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)

Activity

  1. Juul commented on Sep 27, 2011

    @Juul
    Author

    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)

  2. TrevorFSmith commented on Sep 29, 2011

    @TrevorFSmith
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions