View Javadoc
1   ///////////////////////////////////////////////////////////////////////////////////////////////
2   // checkstyle: Checks Java source code and other text files for adherence to a set of rules.
3   // Copyright (C) 2001-2024 the original author or authors.
4   //
5   // This library is free software; you can redistribute it and/or
6   // modify it under the terms of the GNU Lesser General Public
7   // License as published by the Free Software Foundation; either
8   // version 2.1 of the License, or (at your option) any later version.
9   //
10  // This library is distributed in the hope that it will be useful,
11  // but WITHOUT ANY WARRANTY; without even the implied warranty of
12  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  // Lesser General Public License for more details.
14  //
15  // You should have received a copy of the GNU Lesser General Public
16  // License along with this library; if not, write to the Free Software
17  // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  ///////////////////////////////////////////////////////////////////////////////////////////////
19  
20  package com.puppycrawl.tools.checkstyle.checks.regexp;
21  
22  import org.junit.jupiter.api.Disabled;
23  import org.junit.jupiter.api.Test;
24  
25  import com.puppycrawl.tools.checkstyle.AbstractExamplesModuleTestSupport;
26  
27  @Disabled("until https://github.com/checkstyle/checkstyle/issues/13345")
28  public class RegexpCheckExamplesTest extends AbstractExamplesModuleTestSupport {
29      @Override
30      protected String getPackageLocation() {
31          return "com/puppycrawl/tools/checkstyle/checks/regexp/regexp";
32      }
33  
34      @Test
35      public void testExample1() throws Exception {
36          final String[] expected = {
37  
38          };
39  
40          verifyWithInlineConfigParser(getPath("Example1.txt"), expected);
41      }
42  
43      @Test
44      public void testExample2() throws Exception {
45          final String[] expected = {
46  
47          };
48  
49          verifyWithInlineConfigParser(getPath("Example2.txt"), expected);
50      }
51  
52      @Test
53      public void testExample3() throws Exception {
54          final String[] expected = {
55  
56          };
57  
58          verifyWithInlineConfigParser(getPath("Example3.txt"), expected);
59      }
60  
61      @Test
62      public void testExample4() throws Exception {
63          final String[] expected = {
64  
65          };
66  
67          verifyWithInlineConfigParser(getPath("Example4.txt"), expected);
68      }
69  
70      @Test
71      public void testExample5() throws Exception {
72          final String[] expected = {
73  
74          };
75  
76          verifyWithInlineConfigParser(getPath("Example5.txt"), expected);
77      }
78  
79      @Test
80      public void testExample6() throws Exception {
81          final String[] expected = {
82  
83          };
84  
85          verifyWithInlineConfigParser(getPath("Example6.txt"), expected);
86      }
87  
88      @Test
89      public void testExample7() throws Exception {
90          final String[] expected = {
91  
92          };
93  
94          verifyWithInlineConfigParser(getPath("Example7.txt"), expected);
95      }
96  
97      @Test
98      public void testExample8() throws Exception {
99          final String[] expected = {
100 
101         };
102 
103         verifyWithInlineConfigParser(getPath("Example8.txt"), expected);
104     }
105 
106     @Test
107     public void testExample9() throws Exception {
108         final String[] expected = {
109 
110         };
111 
112         verifyWithInlineConfigParser(getPath("Example9.txt"), expected);
113     }
114 
115     @Test
116     public void testExample10() throws Exception {
117         final String[] expected = {
118 
119         };
120 
121         verifyWithInlineConfigParser(getPath("Example10.txt"), expected);
122     }
123 
124     @Test
125     public void testExample11() throws Exception {
126         final String[] expected = {
127 
128         };
129 
130         verifyWithInlineConfigParser(getPath("Example11.txt"), expected);
131     }
132 
133     @Test
134     public void testExample12() throws Exception {
135         final String[] expected = {
136 
137         };
138 
139         verifyWithInlineConfigParser(getPath("Example12.txt"), expected);
140     }
141 
142     @Test
143     public void testExample13() throws Exception {
144         final String[] expected = {
145 
146         };
147 
148         verifyWithInlineConfigParser(getPath("Example13.txt"), expected);
149     }
150 }