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 230464 - Deletion of tests does not delete corresponding structure under /target/test-classes directory
Summary: Deletion of tests does not delete corresponding structure under /target/test-...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-29 14:39 UTC by Jiri Kovalsky
Modified: 2013-06-05 16:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Maven based project reproducing this problem. (2.82 KB, application/zip)
2013-05-29 14:39 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2013-05-29 14:39:30 UTC
Created attachment 135077 [details]
Maven based project reproducing this problem.

Product Version: NetBeans IDE 7.3.1 (Build 201305282201)
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/7.3.1
Cache directory: /home/cesilko/.cache/netbeans/7.3.1

Description:
============
Deleting tests in a Maven based project via Projects explorer leads to not working actions like "Go to Source", "Run Again" or "Debug". I think it's caused by inconsistency between "src/test" and "target/test-classes" directories. Please see the steps below and attached project for more information.

Steps to reproduce:
===================
1. Open the attached UnitTestingExample Maven based project.
2. Right click "Source Packages | first" node and invoke "Tools > Create Tests".
3. Confirm your decision in "Create Tests" dialog by "OK" button.
4. Let "JUnit 4.x" selected in "Select JUnit Version" dialog and push "Select".
5. Right click "UnitTestingExample" project node and invoke "Test" menu action.
6. Multiselect "first" and "java.first" nodes under "Test Packages" and delete them.
7. Please note that corresponding structure still remains under "UnitTestingExample/target/test-classes" directory.
8. Right click "Source Packages | second" node and invoke "Tools > Create Tests".
9. Confirm your decision in "Create Tests" dialog by "OK" button.
10. Repeat step 5.
11. Note that "Test Results" output window displays "first.FirstClassTest" result.
12. Right click "testFirstMethod" node and invoke "Go to Source" from its popup menu but it will not do anything.
Comment 1 Theofanis Oikonomou 2013-05-30 11:54:42 UTC
NetBeans IDE Dev (Build 20130530-e1435134b56e)
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01

I am sorry but I cannot reproduce following your steps. Although I see the structure of dirs from step 7. Once I do step 10 the TRW updates itself and displays the results for second.*Test class
Comment 2 Jiri Kovalsky 2013-05-30 11:59:43 UTC
OK, when I will be in Prague next Wednesday (June 5th) I will call you to come to see it for yourself. Maybe a patched module with some additional logging could help diagnose what's wrong with my setup.
Comment 3 Jiri Kovalsky 2013-06-05 16:11:33 UTC
Product Version: NetBeans IDE 7.3.1 (Build 201305282201)
Updates: Updates available
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/7.3.1
Cache directory: /home/cesilko/.cache/netbeans/7.3.1

OK. I tried it once again and it really works fine in trunk. It does not work in 7.3.1 however since I don't consider this to be a 7.3.1 showstopper I am not reopening this bug.

I apologize for incorrectly set Version.