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 100914

Summary: Content of generated new junit4 empty class
Product: java Reporter: Jiri Vagner <jvagner>
Component: JUnitAssignee: Theofanis Oikonomou <theofanis>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: empty-junit-content.jpg

Description Jiri Vagner 2007-04-13 09:29:42 UTC
I have a few ideas how to change content of generated junit4 class.

I removed empty contructor, no need to call ancestor like in previous junit version.
I add example test method body. Annotation @Test is new, so example method is
ideal for beginners.
I removed "throw exception".

See the screenshot.
Comment 1 Jiri Vagner 2007-04-13 09:35:42 UTC
Created attachment 40872 [details]
empty-junit-content.jpg
Comment 2 mjr_1974 2009-04-16 15:06:42 UTC
I think the test looks good, but I would live the throw exception in the template