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

Summary: failure in NbClipboardDelayedTest
Product: platform Reporter: pzajac <pzajac>
Component: -- Other --Assignee: Jaroslav Tulach <jtulach>
Status: CLOSED FIXED    
Severity: blocker Keywords: TEST
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: exception stacktrace

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.&#8201;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