db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-5115) NetworkServerControlApiTest depends on implicit ordering of test cases
Date Wed, 09 Mar 2011 11:36:59 GMT
NetworkServerControlApiTest depends on implicit ordering of test cases
----------------------------------------------------------------------

                 Key: DERBY-5115
                 URL: https://issues.apache.org/jira/browse/DERBY-5115
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.8.0.0
            Reporter: Knut Anders Hatlen


If the test cases in NetworkServerControlApiTest run in a different order than the order in
which they appear in the source file, they may fail. Seen in the nightly regression tests
on Java 7, for example here:

http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/testlog/lin/1078855-suitesAll_diff.txt

1) testTraceCommands(org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlApiTest)junit.framework.AssertionFailedError
	at org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlApiTest.testTraceCommands(NetworkServerControlApiTest.java:116)
...
2) testPropertiesAfterConnection(org.apache.derbyTesting.functionTests.tests.derbynet.GetCurrentPropertiesTest)junit.framework.ComparisonFailure:
expected:<true> but was:<null>
	at org.apache.derbyTesting.functionTests.tests.derbynet.GetCurrentPropertiesTest.testPropertiesAfterConnection(GetCurrentPropertiesTest.java:170)

The test should either make the order of the test cases explicit, or make the test cases independent
of each other.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message