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.chapterprogrammingpractices.ruleprogrammingpractices;
21
22 import org.junit.jupiter.api.Test;
23
24 import com.openjdk.checkstyle.test.base.AbstractOpenJdkModuleTestSupport;
25
26 public class ProgrammingPracticesTest extends AbstractOpenJdkModuleTestSupport {
27
28 @Override
29 public String getPackageLocation() {
30 return "com/openjdk/checkstyle/test/chapterprogrammingpractices/ruleprogrammingpractices";
31 }
32
33 @Test
34 public void testFallThrough() throws Exception {
35 verifyWithWholeConfig(getPath("InputProgrammingPracticesFallThrough.java"));
36 }
37
38 @Test
39 public void testOverrideOne() throws Exception {
40 verifyWithWholeConfig(getPath("InputProgrammingPracticesOverrideOne.java"));
41 }
42
43 @Test
44 public void testOverrideTwo() throws Exception {
45 verifyWithWholeConfig(getPath("InputProgrammingPracticesOverrideTwo.java"));
46 }
47
48 @Test
49 public void testParameterMutation() throws Exception {
50 verifyWithWholeConfig(getPath("InputProgrammingPracticesParameterMutation.java"));
51 }
52
53 @Test
54 public void testTodoComments() throws Exception {
55 verifyWithWholeConfig(getPath("InputProgrammingPracticesTodoComments.java"));
56 }
57
58 @Test
59 public void testVariable() throws Exception {
60 verifyWithWholeConfig(getPath("InputProgrammingPracticesVariable.java"));
61 }
62
63 }