This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
testOrdering fail expected:<1> but was:<0> junit.framework.AssertionFailedError: expected:<1> but was:<0> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:282) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:201) at junit.framework.Assert.assertEquals(Assert.java:207) at org.openide.util.MetaInfServicesLookupTest.testOrdering(MetaInfServicesLookupTest.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:119) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:173) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:129) at org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41)
Are you able to reproduce it? Or was it random?
Anyway, lookup is now your module again. :-) Let me know if I can help somehow. The test fail in the first assert of the sorting test. The sorting support itself was trivial change and if there is reproducible problem it should be easy to fix. If it random failure then I would guess the problem lies deeper and is not related to sorting much.
By this vague sentence "if there is reproducible problem it should be easy to fix" I meant that *I* will be happy to fix it.
Does not seem at all intermitent. I got the error when ever I run the test. Reassigning to original author. cd openide/test ant realclean ant -Dxtest.attribs=empty -Dxtest.includes=**/MetaInfServicesLookupTest* [printSummary] Expected Passes: 5 Unexpected Passes: 0 [printSummary] Expected Fails: 0 Unexpected Fails: 1 Errors: 0 [printSummary] Total: 6 Success Rate: 83,33%
Yarda, I fixed the problem in Ant script with building/cleaning helper jars.
Works for me. Please verify if test still fails for you. Tested on my XP and repeatedly on following qa hots: Operating System Name : Windows XP Operating System Version : 5.1 System Architecture : x86 Java Version : 1.4.0_02 Java Vendor : Sun Microsystems Inc. User Language : en Operating System Name : SunOS Operating System Version : 5.10 System Architecture : sparc Java Version : 1.4.0_02 Java Vendor : Sun Microsystems Inc. User Language : en Operating System Name : SunOS Operating System Version : 5.8 System Architecture : x86 Java Version : 1.4.0_02 Java Vendor : Sun Microsystems Inc. User Language : cs Operating System Name : Linux Operating System Version : 2.4.19-4GB System Architecture : i386 Java Version : 1.4.0_02 Java Vendor : Sun Microsystems Inc. User Language : en Operating System Name : SunOS Operating System Version : 5.9 System Architecture : sparc Java Version : 1.4.0_02 Java Vendor : Sun Microsystems Inc. User Language : en Operating System Name : Linux Operating System Version : 2.4.18-19.8.0 System Architecture : i386 Java Version : 1.4.0_02 Java Vendor : Sun Microsystems Inc. User Language : en
Works for me on my notebook with Mandrake (but was failing on way slower workstation in work with Mandrake). But I guess that this can be closed for now.
closed