@Test public void testNL3() throws Exception { mCheckConfig.addAttribute("option", LeftCurlyOption.NL.toString()); final String[] expected = { "26:33: '{' should be on a new line.", "91:19: '{' should be on a new line.", "97:19: '{' should be on a new line.", }; verify(mCheckConfig, getPath("InputLeftCurlyOther.java"), expected); }
@Test public void testNLWithAnnotations() throws Exception { mCheckConfig.addAttribute("option", LeftCurlyOption.NL.toString()); final String[] expected = { "35:34: '{' should be on a new line.", "38:41: '{' should be on a new line.", "44:27: '{' should be on a new line.", "58:32: '{' should be on a new line.", }; verify(mCheckConfig, getPath("InputLeftCurlyAnnotations.java"), expected); }
@Test public void testNL() throws Exception { mCheckConfig.addAttribute("option", LeftCurlyOption.NL.toString()); final String[] expected = { "49:14: '{' should be on a new line.", "53:14: '{' should be on a new line.", "58:18: '{' should be on a new line.", "62:18: '{' should be on a new line.", "67:12: '{' should be on a new line.", "72:18: '{' should be on a new line.", }; verify(mCheckConfig, getPath("InputScopeInnerInterfaces.java"), expected); }
@Test public void testNL2() throws Exception { mCheckConfig.addAttribute("option", LeftCurlyOption.NL.toString()); final String[] expected = { "14:39: '{' should be on a new line.", "21:20: '{' should be on a new line.", "34:31: '{' should be on a new line.", "43:24: '{' should be on a new line.", "56:35: '{' should be on a new line.", "60:24: '{' should be on a new line.", "74:20: '{' should be on a new line.", "87:31: '{' should be on a new line.", }; verify(mCheckConfig, getPath("InputLeftCurlyMethod.java"), expected); }