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 82373

Summary: Hanging junit tests
Product: java Reporter: ehucka <ehucka>
Component: JUnitAssignee: Marian Petras <mpetras>
Status: VERIFIED FIXED    
Severity: blocker CC: mkleint
Priority: P3 Keywords: SIMPLEFIX
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ehucka 2006-08-10 12:09:31 UTC
I started some junit tests in ide. It opened junit output window and showed Test
suite is running ..., nothing more. Tests had finished (in output window) but
progress dialog in status bar and in Process window were showing 'Running JUnit
tests ... 100%'. After I started another tests the Process window displayed two
lines 'Running JUnit tests ... 100%'.
Comment 1 Milos Kleint 2006-08-10 12:27:02 UTC
please include your OS and JDK information.

it works for me on macosx + 1.5 in the current trunk

reassigning to junit for evaulation, please make sure you call finish() in a
finally block.
Comment 2 Marian Petras 2006-08-10 15:11:11 UTC
I have never seen this behaviour. Anyway, I will put progressHandle.finish() to
the finally block.
Comment 3 Marian Petras 2006-08-15 11:19:12 UTC
Fixed in the trunk.

Modified file:
   junit/src/org/netbeans/modules/junit/output/JUnitOutputReader.java   (1.27)

Diff:
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/output/JUnitOutputReader.java?r1=1.26&r2=1.27&diff_format=u
Comment 4 ehucka 2006-09-11 16:04:48 UTC
verified