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 231212 - AssertionFailedError at org.openide.windows.TopComponentTest.testToStringOfDelegateContainsNameOfOriginalAction(TopComponentTest.java:277)
Summary: AssertionFailedError at org.openide.windows.TopComponentTest.testToStringOfDe...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL: http://deadlock.netbeans.org/hudson/j...
Keywords: RANDOM, TEST
Depends on:
Blocks:
 
Reported: 2013-06-13 13:20 UTC by Martin Entlicher
Modified: 2013-06-27 02:20 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 Martin Entlicher 2013-06-13 13:20:37 UTC
The test produce following error:

junit.framework.AssertionFailedError: 
	at org.openide.windows.TopComponentTest.testToStringOfDelegateContainsNameOfOriginalAction(TopComponentTest.java:277)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:97)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:431)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:357)
	at java.lang.Thread.run(Thread.java:722)

It's reproducible for me, log.toString() is empty, because Lookup.getDefault().lookup(Keymap.class) is null in tc.processKeyBinding()
Comment 1 Stanislav Aubrecht 2013-06-14 15:24:08 UTC
The test is passing for me locally and also in build no 10347 onwards.
Comment 2 Martin Entlicher 2013-06-18 09:37:32 UTC
http://deadlock.netbeans.org/hudson/job/NB-Core-Build/10371/testReport/junit/org.openide.windows/TopComponentTest/testToStringOfDelegateContainsNameOfOriginalAction/

This is a random issue. The fact that the test happens to pass sometimes does not mean anything.
Comment 3 Stanislav Aubrecht 2013-06-18 15:54:08 UTC
core-main d0af265e9ee9
Comment 5 Stanislav Aubrecht 2013-06-20 08:57:01 UTC
core-main 1da47de69fd9
Comment 6 Quality Engineering 2013-06-22 02:10:26 UTC
Integrated into 'main-golden', will be available in build *201306212301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d0af265e9ee9
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #231212 - randomly failing test
Comment 7 Quality Engineering 2013-06-27 02:20:24 UTC
Integrated into 'main-golden', will be available in build *201306262301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1da47de69fd9
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #231212 - fixing a fix of randomly failing test