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 52538 - Failure in TopComponentForeignLookupTest
Summary: Failure in TopComponentForeignLookupTest
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2004-12-16 09:35 UTC by Jaroslav Tulach
Modified: 2008-12-22 16:37 UTC (History)
0 users

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-12-16 09:35:32 UTC
testrun_041215-044536:

testForeignNodesInLookupIgnoredForNodeQuery:

      junit.framework.AssertionFailedError:
expected:<2> but was:<1>
	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.windows.TopComponentGetLookupTest.testForeignNodesInLookupIgnoredForNodeQuery(TopComponentGetLookupTest.java:499)
	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:585)
	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.access$001(NbTestCase.java:33)
	at
org.netbeans.junit.NbTestCase$1.run(NbTestCase.java:102)
	at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Jaroslav Tulach 2004-12-21 18:45:22 UTC
cvs -q ci -m "#52538: Not sure I want to know why this test is
failing. On one line the result contains two elements on the next one
just one. Strange. The test is now fixed by aing just once and
remembering the result."
Checking in
test/unit/src/org/openide/windows/TopComponentGetLookupTest.java;
/cvs/openide/test/unit/src/org/openide/windows/TopComponentGetLookupTest.java,v
 <--  TopComponentGetLookupTest.java
new revision: 1.21; previous revision: 1.20
Comment 2 pzajac 2005-04-13 10:28:02 UTC
verified (test passed)