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 48933 - [40cat] source code hints checkbox has no effect
Summary: [40cat] source code hints checkbox has no effect
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Ondrej Rypacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-13 14:39 UTC by dynamite
Modified: 2006-03-24 10:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dynamite 2004-09-13 14:39:14 UTC
[ BUILD # : 200409100847 ]
[ JDK VERSION : J2SE 1.5.0 ]

The summary says it all really. In the JUnit 'Empty Test ...' wizard there is a checkbox 'Source Code Hints'. I get the same test whether or not it is checked.
Comment 1 dmladek 2004-09-13 15:06:28 UTC
Changing bad TargetMilestone value from 3.3 to TBD (more details in
issue 48133 )
Comment 2 Ondrej Rypacek 2004-10-18 14:52:16 UTC
fixed. With the checkbox checked it now generates e.g.

    public void testCount() {
        System.out.println("testCount");
        
        // TODO add your test code below by replacing the default call
to fail.
        fail("The test case is empty.");
    }

while without it, it generates

    public void testCount() {
        System.out.println("testCount");
        fail("The test case is empty.");
    }
Comment 3 dynamite 2004-10-22 16:02:52 UTC
Ah, but it still does nothing when generating an empty test case! This
is actually what I raised the issue against. Either the checkbox
should do something in the empty test case scenario or it should be
removed.

What I personally would like to see is that when it is unclicked the
example commented-out test method that I always delete would not be
there. I know how JUnit works and it would be nice if there was one
less thing to do each time.
Comment 5 Max Sauer 2005-12-19 09:56:54 UTC
verified in nbdev 200512181900.