use of com.intellij.psi.codeStyle.CommonCodeStyleSettings in project intellij-community by JetBrains.
the class JavaFormatterTest method testSCR279.
public void testSCR279() throws Exception {
final CommonCodeStyleSettings settings = getSettings();
settings.ALIGN_MULTILINE_BINARY_OPERATION = true;
doTest();
}
use of com.intellij.psi.codeStyle.CommonCodeStyleSettings in project intellij-community by JetBrains.
the class JavaFormatterTest method testSCR395.
public void testSCR395() throws Exception {
final CommonCodeStyleSettings settings = getSettings();
settings.METHOD_BRACE_STYLE = CommonCodeStyleSettings.END_OF_LINE;
doTest();
}
use of com.intellij.psi.codeStyle.CommonCodeStyleSettings in project intellij-community by JetBrains.
the class JavaFormatterTest method testSCR479.
public void testSCR479() throws Exception {
final CommonCodeStyleSettings settings = getSettings();
settings.RIGHT_MARGIN = 80;
settings.TERNARY_OPERATION_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED;
doTextTest("public class Foo {\n" + " public static void main(String[] args) {\n" + " if (name != null ? !name.equals(that.name) : that.name != null)\n" + " return false;\n" + " }\n" + "}", "public class Foo {\n" + " public static void main(String[] args) {\n" + " if (name != null ? !name.equals(that.name) : that.name != null)\n" + " return false;\n" + " }\n" + "}");
}
use of com.intellij.psi.codeStyle.CommonCodeStyleSettings in project intellij-community by JetBrains.
the class JavaFormatterTest method testSCR114.
public void testSCR114() throws Exception {
final CommonCodeStyleSettings settings = getSettings();
settings.BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE;
settings.CATCH_ON_NEW_LINE = true;
doTest();
}
use of com.intellij.psi.codeStyle.CommonCodeStyleSettings in project intellij-community by JetBrains.
the class JavaFormatterTest method testAlignAssignment.
public void testAlignAssignment() throws Exception {
final CommonCodeStyleSettings settings = getSettings();
settings.ALIGN_MULTILINE_ASSIGNMENT = true;
settings.ALIGN_MULTILINE_BINARY_OPERATION = true;
doTest();
}
Aggregations