Lines 10142-10145
Link Here
|
10142 |
DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); |
10142 |
DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); |
10143 |
runTest(codeFormatter, "test714", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$ |
10143 |
runTest(codeFormatter, "test714", "A.java", CodeFormatter.K_COMPILATION_UNIT, false);//$NON-NLS-1$ //$NON-NLS-2$ |
10144 |
} |
10144 |
} |
|
|
10145 |
|
10146 |
public void test715() { |
10147 |
Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); |
10148 |
DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); |
10149 |
DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); |
10150 |
String input = |
10151 |
"package a;\r\n" + |
10152 |
"\r\n" + |
10153 |
"public class Test {\r\n" + |
10154 |
"\r\n" + |
10155 |
" private int field;\r\n" + |
10156 |
" \r\n" + |
10157 |
" /**\r\n" + |
10158 |
" * fds \r\n" + |
10159 |
" */\r\n" + |
10160 |
" public void foo() {\r\n" + |
10161 |
" }\r\n" + |
10162 |
"}"; |
10163 |
|
10164 |
runTest(input, input, codeFormatter, CodeFormatter.K_COMPILATION_UNIT, 0, false, 62, 19, null); |
10165 |
} |
10145 |
} |
10166 |
} |