[java formatter] respect SPACE_BEFORE_COMMA [IDEA-150466]

This commit is contained in:
Yaroslav Lepenkin
2017-03-28 17:33:11 +03:00
parent 4867e9a0b7
commit 8954f34691
2 changed files with 13 additions and 2 deletions
@@ -673,5 +673,16 @@ public class JavaFormatterSpaceTest extends AbstractJavaFormatterTest {
" @Annotation THREE\n" +
"}");
}
public void testSpaceBeforeComma() {
getSettings().SPACE_BEFORE_COMMA = true;
doClassTest(
"public void main(String[] args, String xxx) {\n" +
" foo(100, 200);\n" +
"}",
"public void main(String[] args , String xxx) {\n" +
" foo(100 , 200);\n" +
"}");
}
}