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 - Content of generated new junit4 empty class
Summary: Content of generated new junit4 empty class
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker with 1 vote (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-13 09:29 UTC by Jiri Vagner
Modified: 2011-11-04 12:08 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
empty-junit-content.jpg (109.55 KB, image/jpeg)
2007-04-13 09:35 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
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