IDEA-62715 Automatic indentation doesn't work if you don't use braces

The test checks various types of comments now
This commit is contained in:
Denis Zhdanov
2010-12-14 16:31:33 +03:00
parent 6d5a16a575
commit d1b6abab8f
@@ -296,13 +296,15 @@ public class JavaFormatterIndentationTest extends AbstractJavaFormatterTest {
String precededByMultiLineComment =
"/*\n" +
" * test\n" +
" */\n" +
"test\n" +
"*/\n" +
"public int getFoo()\n" +
" {\n" +
" return foo;\n" +
" }";
doClassTest(precededByJavadoc, precededByJavadoc);
doClassTest(precededBySingleLineComment, precededBySingleLineComment);
doClassTest(precededByMultiLineComment, precededByMultiLineComment);
}
}