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.chapter4formatting.rule451wheretobreak;
21
22 import org.junit.jupiter.api.Test;
23
24 import com.google.checkstyle.test.base.AbstractGoogleModuleTestSupport;
25
26 public class WhereToBreakTest extends AbstractGoogleModuleTestSupport {
27
28 @Override
29 protected String getPackageLocation() {
30 return "com/google/checkstyle/test/chapter4formatting/rule451wheretobreak";
31 }
32
33 @Test
34 public void testOperatorWrap() throws Exception {
35 verifyWithWholeConfig(getPath("InputOperatorWrap.java"));
36 }
37
38 @Test
39 public void testOperatorWrapFormatted() throws Exception {
40 verifyWithWholeConfig(getPath("InputFormattedOperatorWrap.java"));
41 }
42
43 @Test
44 public void testMethodParamPad() throws Exception {
45 verifyWithWholeConfig(getPath("InputMethodParamPad.java"));
46 }
47
48 @Test
49 public void testMethodParamPadFormatted() throws Exception {
50 verifyWithWholeConfig(getPath("InputFormattedMethodParamPad.java"));
51 }
52
53 @Test
54 public void testSeparatorWrapDot() throws Exception {
55 verifyWithWholeConfig(getPath("InputSeparatorWrap.java"));
56 }
57
58 @Test
59 public void testSeparatorWrapDotFormatted() throws Exception {
60 verifyWithWholeConfig(getPath("InputFormattedSeparatorWrap.java"));
61 }
62
63 @Test
64 public void testSeparatorWrapComma() throws Exception {
65 verifyWithWholeConfig(getPath("InputSeparatorWrapComma.java"));
66 }
67
68 @Test
69 public void testSeparatorWrapCommaFormatted() throws Exception {
70 verifyWithWholeConfig(getPath("InputFormattedSeparatorWrapComma.java"));
71 }
72
73 @Test
74 public void testSeparatorWrapMethodRef() throws Exception {
75 verifyWithWholeConfig(getPath("InputSeparatorWrapMethodRef.java"));
76 }
77
78 @Test
79 public void testSeparatorWrapMethodRefFormatted() throws Exception {
80 verifyWithWholeConfig(getPath("InputFormattedSeparatorWrapMethodRef.java"));
81 }
82
83 @Test
84 public void testEllipsis() throws Exception {
85 verifyWithWholeConfig(getPath("InputSeparatorWrapEllipsis.java"));
86 }
87
88 @Test
89 public void testEllipsisFormatted() throws Exception {
90 verifyWithWholeConfig(getPath("InputFormattedSeparatorWrapEllipsis.java"));
91 }
92
93 @Test
94 public void testArrayDeclarator() throws Exception {
95 verifyWithWholeConfig(getPath("InputSeparatorWrapArrayDeclarator.java"));
96 }
97
98 @Test
99 public void testArrayDeclaratorFormatted() throws Exception {
100 verifyWithWholeConfig(getPath("InputFormattedSeparatorWrapArrayDeclarator.java"));
101 }
102
103 @Test
104 public void testLambdaBodyWrap() throws Exception {
105 verifyWithWholeConfig(getPath("InputLambdaBodyWrap.java"));
106 }
107
108 @Test
109 public void testLambdaBodyWrapFormatted() throws Exception {
110 verifyWithWholeConfig(getPath("InputFormattedLambdaBodyWrap.java"));
111 }
112 }