[tests] extends switch expression formatting test case

This commit is contained in:
Roman Shevchenko
2018-11-21 19:20:51 +01:00
parent 3040f8d9f7
commit 8c54969bb1
@@ -735,7 +735,9 @@ public class JavaFormatterSpaceTest extends AbstractJavaFormatterTest {
}
public void testSwitchExpression() {
doMethodTest("String s = switch\n(i ){}",
"String s = switch (i) {\n}");
doMethodTest("String s = switch\n(i ){default -> null;}",
"String s = switch (i) {\n" +
" default -> null;\n" +
"}");
}
}