1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package com.openjdk.checkstyle.test.chapterformatting.rulewrappinglines;
21
22 import org.junit.jupiter.api.Test;
23
24 import com.openjdk.checkstyle.test.base.AbstractOpenJdkModuleTestSupport;
25
26 public class WrappingLinesTest extends AbstractOpenJdkModuleTestSupport {
27
28 @Override
29 public String getPackageLocation() {
30 return "com/openjdk/checkstyle/test/chapterformatting/rulewrappinglines";
31 }
32
33 @Test
34 public void testOneStatementPerLineDefault() throws Exception {
35 verifyWithWholeConfig(getPath("InputOneStatementPerLineDefault.java"));
36 }
37
38 @Test
39 public void testOneStatementPerLineMultiple() throws Exception {
40 verifyWithWholeConfig(getPath("InputOneStatementPerLineMultiple.java"));
41 }
42
43 @Test
44 public void testOneStatementPerLineValid() throws Exception {
45 verifyWithWholeConfig(getPath("InputOneStatementPerLineValid.java"));
46 }
47
48 @Test
49 public void testOneStatementPerLineForLoop() throws Exception {
50 verifyWithWholeConfig(getPath("InputOneStatementPerLineForLoop.java"));
51 }
52
53 @Test
54 public void testWrappingLinesLineLimit() throws Exception {
55 verifyWithWholeConfig(getPath("InputWrappingLinesLineLimit.java"));
56 }
57
58 @Test
59 public void testWrappingLinesDosAndDontsOne() throws Exception {
60 verifyWithWholeConfig(getPath("InputWrappingLinesDosAndDontsOne.java"));
61 }
62
63 @Test
64 public void testWrappingLinesDosAndDontsTwo() throws Exception {
65 verifyWithWholeConfig(getPath("InputWrappingLinesDosAndDontsTwo.java"));
66 }
67
68 }