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 111058 - Junit 3.x 4.x Unit Test Errors in NB 6.0 M10
Summary: Junit 3.x 4.x Unit Test Errors in NB 6.0 M10
Status: RESOLVED DUPLICATE of bug 108686
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-26 09:45 UTC by stever
Modified: 2007-07-26 12:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Junit 4.1 Test Creation/compilation errors (60.14 KB, image/png)
2007-07-26 09:49 UTC, stever
Details
Junit 3.2.8 Test Creation/compilation Errors (56.98 KB, image/png)
2007-07-26 09:50 UTC, stever
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stever 2007-07-26 09:45:24 UTC
>System Info: 
  Product Version         = NetBeans IDE 6.0 M10 (build 200706281431)
  Operating System        = Windows 2003 version 5.2 running on x86
  Java; VM; Vendor        = 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06; Sun Microsystems Inc.
  Java Home               = C:\Program Files\Java\jdk1.6.0_01\jre

Generating a simple test case for a Netbeans Module Project class, with Tools->Create Junit Tests :-
1. Generate 3.x test case, IDE shows no error decorations for generated test class, but fails compilation

Compiling 1 source file to C:\temp\downloads\netbeans\work\Dialogs\JUnit3.2Test\build\test\unit\classes
C:\temp\downloads\netbeans\work\Dialogs\JUnit3.2Test\test\unit\src\test\junit3\test\JUnit32TestTest.java:10: package 
junit.framework does not exist
import junit.framework.TestCase;

2. Generate 4.x test case, IDE shows error decorations for generated test class,as Issue 106982.
Basically package org.junit can not be found. Also compilation fails.

Compiling 1 source file to C:\temp\downloads\netbeans\work\Dialogs\JUnit4.1Test\build\test\unit\classes
C:\temp\downloads\netbeans\work\Dialogs\JUnit4.1Test\test\unit\src\test\junit4\test\JUnit41TestTest.java:10: package 
org.junit does not exist
import org.junit.Test;


Copying junit-3.8.2.jar and junit-4.1.jar from java1/modules/ext to ide8/modules/ext. Allows both tests to be run. But 
error decorations are still shown for the 4.1 version though.
Comment 1 stever 2007-07-26 09:49:33 UTC
Created attachment 45754 [details]
Junit 4.1 Test Creation/compilation errors
Comment 2 stever 2007-07-26 09:50:08 UTC
Created attachment 45755 [details]
Junit 3.2.8 Test Creation/compilation Errors
Comment 3 Marian Petras 2007-07-26 11:57:27 UTC
I assume it is a duplicate of bug #108686.
Comment 4 stever 2007-07-26 12:14:25 UTC
Sorry

Yes, it does look like a duplicate of bug #108686. I did do a search, I guess the summary for #108686 didn't really 
reflect the problem/error.
Comment 5 pzajac 2007-07-26 12:44:06 UTC

*** This issue has been marked as a duplicate of 108686 ***