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.

Bug 43375 - Failure in MetaInfLT.testOrdering
Summary: Failure in MetaInfLT.testOrdering
Status: CLOSED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2004-05-17 14:51 UTC by Jaroslav Tulach
Modified: 2008-12-22 19:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2004-05-17 14:51:03 UTC
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)
Comment 1 David Konecny 2004-05-17 15:41:45 UTC
Are you able to reproduce it? Or was it random?
Comment 2 David Konecny 2004-05-17 18:00:40 UTC
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. 
Comment 3 David Konecny 2004-05-18 08:46:33 UTC
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.
Comment 4 Jaroslav Tulach 2004-06-02 07:23:54 UTC
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%
Comment 5 David Konecny 2004-06-02 10:57:31 UTC
Yarda, I fixed the problem in Ant script with building/cleaning helper
jars.
Comment 6 rmatous 2004-06-29 14:11:59 UTC
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
Comment 7 Jaroslav Tulach 2004-07-04 01:52:35 UTC
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.
Comment 8 Marian Mirilovic 2005-07-12 10:15:47 UTC
closed