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 107936 - [60cat] JUnit-settings are imported badly
Summary: [60cat] JUnit-settings are imported badly
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: junit-issues@java
Depends on: 44035
  Show dependency tree
Reported: 2007-06-24 01:31 UTC by ulfzibis
Modified: 2009-03-19 16:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2007-06-24 01:31:36 UTC
On starting NetBeans 6.0 M9 I was asked, if I want to import the settings of NetBeans 5.5.

Then I got Reference Problems: "junit" library could not be found.
In Libraray Manager JUnit classpath "nbinst/modules/ext/junit-3.8.1.jar" is not valid.
Comment 1 ulfzibis 2007-06-24 13:06:59 UTC
Also Favorites were not imported.
Comment 2 ulfzibis 2007-06-27 11:26:35 UTC
Also settings for NewClass template are not imported.

Here: field: author

Comment 3 Marian Petras 2007-10-03 16:53:38 UTC
Can you try to reproduce this bug with 6.0 M10 or, better, with Beta 1?
Comment 4 Marian Petras 2007-10-31 20:04:04 UTC
The system name of the JUnit library ("junit") is intentionally unchanged in NB 6.0, so there should be no issue with
this. I tried to reproduce this reported problem: on Windows XP, I tried to open a project that I previously created in
NB 5.5.1. NetBeans successfully opened it and there were no reference problems with the JUnit library. I noticed a
reference problem with library "swing-layout" instead.

Because you report a reference problem with the JUnit library: Is it still a problem? If not, how did you resolve it?
Answers to these questions might shed some light on the cause of the reported problem (and thus help fixing it).
Comment 5 ulfzibis 2007-10-31 20:50:27 UTC
1.) I never installed 5.5.1, and I didn't import settings from 5.5.1, but from 5.5. Maybe this makes it different. Is
5.5.1 using junit-3.8.2.jar by default? NB 5.5 uses junit-3.8.1.jar by default!

2.) I didn't have to _open_ a project to see the reference problem, it was just indicated by the concerning badge and
colour in the project's window.

3.) I didn't install beta 1, but beta 2. I also didn't import settings, as it is not possible to do this from 6.0 xx -->
6.0 yy (see Issues 60750 42157 ...). Instead I copied the user configs to .netbeans\6.0beta2\config, so I can't say, if
the problem is pending in beta 1/2.
Comment 6 ulfzibis 2007-10-31 20:54:00 UTC
What's about the missing import of Favorites and settings for NewClass template?
Should I rename summary to "settings are imported badly"?

Comment 7 ulfzibis 2008-02-28 21:44:01 UTC
> If not, how did you resolve it?

Sorry that I forgot this point last post. :-(

I have corrected the JUnit classpath "nbinst/modules/ext/junit-3.8.1.jar" to "nbinst/modules/ext/junit-3.8.2.jar" by hand.

Comment 8 Peter Pis 2008-09-17 12:44:05 UTC
Can you still reproduce this issue? If not I am going to close it.
Comment 9 ulfzibis 2008-09-17 15:22:55 UTC
1.) I suppose, the issue still occurs, if importing settings from 5.5 to 6.0, as AKAIK there was nothing done about
this. I don't have 5.5 installed anymore.
2.) I have no idea, if importing from 5.5 to 6.1 or 6.5 works properly, but maybe same issue as for 6.0.
3.) I also suppose, that import of author from "Advanced Options": Editing->Java Sources->Strings Table: "USER=Mr
Unknown" in 5.5 to Tools->Template Manager->User configuration Properties in 6.0, 6.1, 6.5 still don't work.
4.) Same to Favourites.
Comment 10 Peter Pis 2008-11-11 10:45:20 UTC
This should be junit issue only. Marian, is there anything that can be done on junit side for 6.5 now? 
Comment 11 Marian Petras 2008-11-26 14:48:56 UTC
There is nothing that could be done for NB 6.5 FCS at the moment, of course. Maybe something could be done for Patch 2
of NB 6.5.
Comment 12 Andrey Yamkovoy 2009-03-19 16:14:27 UTC
Junit settings import from 6.5 to 6.7 in particular is not causing any problems. I'm afraid that import of 5.5 Junit
settings is out of scope by this moment. Closing as Will Not Fix.