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 173142

Summary: Inconsistent indentation in JUnit wizard
Product: java Reporter: _ rkubacki <rkubacki>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: sample output

Description _ rkubacki 2009-09-25 23:40:37 UTC
NB 6.7, linux, JDK6

I set my prefs to use 2 spaces for indent. Junit class wizard creates source file with wrongly indented ctor and
instance methods (surprisingly static methods are correct).
Comment 1 _ rkubacki 2009-09-25 23:41:10 UTC
Created attachment 88391 [details]
sample output
Comment 2 Victor Vasilyev 2009-09-26 19:45:27 UTC
It is a valid issue. Code generating should completely rely on chosen editor options in a part of formatting.

Nevertheless, the JUnit module is only responsible for content of the code, but not formatting.

I'll reassign this issue to an owner of the java.source module.
Comment 3 Jan Lahoda 2011-02-16 14:34:47 UTC
http://hg.netbeans.org/jet-main/rev/a926fe344ddc
Comment 4 Quality Engineering 2011-02-17 10:59:48 UTC
Integrated into 'main-golden', will be available in build *201102170501* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a926fe344ddc
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #173142: reformat files after create new from template