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 50307 - failure in NbClipboardDelayedTest
Summary: failure in NbClipboardDelayedTest
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2004-10-13 08:27 UTC by pzajac
Modified: 2008-12-22 16:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stacktrace (1.48 KB, text/plain)
2004-10-13 08:29 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2004-10-13 08:27:35 UTC
[jdk 1.4.2_0X]
Comment 1 pzajac 2004-10-13 08:29:02 UTC
Created attachment 18237 [details]
exception stacktrace
Comment 2 pzajac 2004-10-13 08:29:31 UTC
Test Case:  	
testWhenCallingGetContentsItChecksSystemClipboardFirstTimeAfterActivation
Test Suite: 	org.netbeans.core. NbClipboardDelayedTest
Module Name: 	core
Comment 3 Jaroslav Tulach 2004-10-13 16:34:35 UTC
I've just fixed the test.
Comment 4 pzajac 2004-10-19 10:56:25 UTC
The test fails again on solaris.
 testWhenCallingGetContentsItChecksSystemClipboardFirstTimeAfterActivation:

      junit.framework.ComparisonFailure: The getContents rechecked the
system clipboard first time after window activated expected:<data2>
but was:<oldvalue>
	at junit.framework.Assert.assertEquals(Assert.java:81)
	at
org.netbeans.core.NbClipboardNativeTest.testWhenCallingGetContentsItChecksSystemClipboardFirstTimeAfterActivation(NbClipboardNativeTest.java:99)
	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)
Comment 5 Jaroslav Tulach 2004-10-20 14:12:54 UTC
Line 99 in NbClipboardNativeTest.java is empty. What version of the
test you are running!?
Comment 6 pzajac 2004-11-02 17:50:01 UTC
v