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 160668

Summary: Rerun button working strangely
Product: java Reporter: pribyl <pribyl>
Component: JUnitAssignee: Andrey Yamkovoy <kaktus>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description pribyl 2009-03-19 16:59:40 UTC
Product Version: NetBeans IDE Dev (Build 200903181604)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

I am not completely sure how the Rerun button is supposed to work, so this is one invalid issue candidate :) 
But I noticed three different behaviors:

I created Test for one class in my Project.
1, I invoked "Test" on the Project's root node - the Rerun button was enabled and after pressing it, the test run again.
So far, so good
2, When I invoked "Test file" on the single file, the Rerun button was disabled - I am not sure why. The test is still
the same and imho should be "re-runable".
3, (this is special) In some cases, the Rerun button is enabled, but does nothing. To reproduce, download the sample
project http://wiki.netbeans.org/attach/TS_60_JUnit/SampleJUnitProject.zip, create test for e.g. Knizka.java (leave
default setting) and run "Test file".
Comment 1 Andrey Yamkovoy 2009-03-24 10:49:17 UTC
Fixed. As far as I verify Rerun button should be enabled and work for any test run types (from project, test file, etc).
But note that Java Project have the different behavior for actions depending on is "Compile on Save" property is enabled
or not. It's strange for me and probably it's a bug.
Comment 2 Quality Engineering 2009-03-26 14:32:48 UTC
Integrated into 'main-golden', will be available in build *200903260733* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0777eb63aedd
User: Andrey Yamkovoy <kaktus@netbeans.org>
Log: Fix for #160668 - Rerun button working strangely