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 70219

Summary: JUnit Results window gets activated at the end of tests
Product: java Reporter: Marian Petras <mpetras>
Component: JUnitAssignee: Marian Petras <mpetras>
Status: VERIFIED FIXED    
Severity: blocker CC: jskrivanek
Priority: P3 Keywords: FOCUS, TEST, UI
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Marian Petras 2005-12-11 18:15:42 UTC
When all tests finish, the JUnit results window gets activated. It should not.
Comment 1 Marian Petras 2005-12-11 18:18:59 UTC
Will be fixed.
Comment 2 Marian Petras 2005-12-11 18:30:54 UTC
Fixed (in the trunk).

The cause was that I had unregistered (forgot) a JUnit Ant session before I sent
the last message to the results window. When the results window got the last
message, it probed the registry and found that the session is not registered -
and it was not. So the result window thought it was the _first_ message obtained
from the session and got activated.

A fixed this simply by moving the unregistration routine after the call that
sends the last message.

Modified file:
    junit/src/org/netbeans/modules/junit/output/Manager.java   (1.8)

Diff:
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/Manager.java?r1=1.7&r2=1.8&diff_format=u
Comment 3 Jiri Skrivanek 2005-12-12 09:56:58 UTC
Verified. Thanks.