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.chapter5naming.rule53camelcase;
21
22 import org.junit.jupiter.api.Test;
23
24 import com.google.checkstyle.test.base.AbstractGoogleModuleTestSupport;
25
26 public class CamelCaseDefinedTest extends AbstractGoogleModuleTestSupport {
27 @Override
28 protected String getPackageLocation() {
29 return "com/google/checkstyle/test/chapter5naming/rule53camelcase";
30 }
31
32 @Test
33 public void testCamelCaseNames() throws Exception {
34 verifyWithWholeConfig(getPath("InputCamelCaseDefined.java"));
35 }
36
37 @Test
38 public void testCamelCaseNamesFormatted() throws Exception {
39 verifyWithWholeConfig(getPath("InputFormattedCamelCaseDefined.java"));
40 }
41
42 @Test
43 public void testCamelCaseNamesMultipartVersioningNames() throws Exception {
44 verifyWithWholeConfig(getPath("InputCamelCaseMultipartVersioningNames.java"));
45 }
46
47 @Test
48 public void testFormattedCamelCaseNamesMultipartVersioningNames() throws Exception {
49 verifyWithWholeConfig(getPath("InputFormattedCamelCaseMultipartVersioningNames.java"));
50 }
51 }