1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package com.google.checkstyle.test.chapter3filestructure.rule333orderingandspacing;
21
22 import org.junit.jupiter.api.Test;
23
24 import com.google.checkstyle.test.base.AbstractGoogleModuleTestSupport;
25
26 public class OrderingAndSpacingTest extends AbstractGoogleModuleTestSupport {
27
28 @Override
29 public String getPackageLocation() {
30 return "com/google/checkstyle/test/chapter3filestructure/rule333orderingandspacing";
31 }
32
33 @Test
34 public void testCustomImport1() throws Exception {
35 verifyWithWholeConfig(getPath("InputOrderingAndSpacing1.java"));
36 }
37
38 @Test
39 public void testCustomImport1Formatted() throws Exception {
40 verifyWithWholeConfig(getPath("InputFormattedOrderingAndSpacing1.java"));
41 }
42
43 @Test
44 public void testCustomImport2() throws Exception {
45 verifyWithWholeConfig(getPath("InputOrderingAndSpacing2.java"));
46 }
47
48 @Test
49 public void testCustomImport2Formatted() throws Exception {
50 verifyWithWholeConfig(getPath("InputFormattedOrderingAndSpacing2.java"));
51 }
52
53 @Test
54 public void testCustomImport3() throws Exception {
55 verifyWithWholeConfig(getPath("InputOrderingAndSpacing3.java"));
56 }
57
58 @Test
59 public void testCustomImport3Formatted() throws Exception {
60 verifyWithWholeConfig(getPath("InputFormattedOrderingAndSpacing3.java"));
61 }
62
63 @Test
64 public void testCustomImport4() throws Exception {
65 verifyWithWholeConfig(getPath("InputOrderingAndSpacing4.java"));
66 }
67
68 @Test
69 public void testCustomImport4Formatted() throws Exception {
70 verifyWithWholeConfig(getPath("InputFormattedOrderingAndSpacing4.java"));
71 }
72
73 @Test
74 public void testCustomImport5() throws Exception {
75 verifyWithWholeConfig(getPath("InputOrderingAndSpacing5.java"));
76 }
77
78 @Test
79 public void testCustomImport5Formatted() throws Exception {
80 verifyWithWholeConfig(getPath("InputFormattedOrderingAndSpacing5.java"));
81 }
82
83 @Test
84 public void testValid() throws Exception {
85 verifyWithWholeConfig(getPath("InputOrderingAndSpacingValid.java"));
86 }
87
88 @Test
89 public void testValidFormatted() throws Exception {
90 verifyWithWholeConfig(getPath("InputFormattedOrderingAndSpacingValid.java"));
91 }
92
93 @Test
94 public void testValid2() throws Exception {
95 verifyWithWholeConfig(getPath("InputOrderingAndSpacingValid2.java"));
96 }
97
98 @Test
99 public void testValid2Formatted() throws Exception {
100 verifyWithWholeConfig(getPath("InputFormattedOrderingAndSpacingValid2.java"));
101 }
102
103 @Test
104 public void testValidGoogleStyleOrderOfImports() throws Exception {
105 verifyWithWholeConfig(getPath("InputOrderingAndSpacingNoImports.java"));
106 }
107
108 @Test
109 public void testValidGoogleStyleOrderOfImportsFormatted() throws Exception {
110 verifyWithWholeConfig(getPath("InputFormattedOrderingAndSpacingNoImports.java"));
111 }
112
113 }