@@ -88,7 +88,7 @@ void beforeEach() {
8888 @ Test
8989 @ InjectMojo (goal = "java" )
9090 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.HelloRunnable" )
91- void testRunnable (ExecJavaMojo mojo ) throws Exception {
91+ void runnable (ExecJavaMojo mojo ) throws Exception {
9292 doExecute (mojo , null , null );
9393 assertEquals ("junit: true" , session .getSystemProperties ().getProperty ("hello.runnable.output" ));
9494 }
@@ -102,15 +102,15 @@ void testRunnable(ExecJavaMojo mojo) throws Exception {
102102 @ Test
103103 @ InjectMojo (goal = "java" )
104104 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.DummyMain" )
105- void testSimpleRun (ExecJavaMojo mojo ) throws Exception {
105+ void simpleRun (ExecJavaMojo mojo ) throws Exception {
106106 String output = execute (mojo );
107107 assertEquals ("Hello" + System .lineSeparator (), output );
108108 }
109109
110110 @ Test
111111 @ InjectMojo (goal = "java" )
112112 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.JSR512DummyMain1" )
113- void testJSR512InstanceMainNoArgs (ExecJavaMojo mojo ) throws Exception {
113+ void jsr512InstanceMainNoArgs (ExecJavaMojo mojo ) throws Exception {
114114 String output = execute (mojo );
115115 assertEquals ("Correct choice" + System .lineSeparator (), output );
116116 }
@@ -119,23 +119,23 @@ void testJSR512InstanceMainNoArgs(ExecJavaMojo mojo) throws Exception {
119119 @ InjectMojo (goal = "java" )
120120 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.JSR512DummyMain2" )
121121 @ MojoParameter (name = "arguments" , value = "arg1,arg2" )
122- void testJSR512PrefersStringArrayArgs (ExecJavaMojo mojo ) throws Exception {
122+ void jsr512PrefersStringArrayArgs (ExecJavaMojo mojo ) throws Exception {
123123 String output = execute (mojo );
124124 assertEquals ("Correct choice arg1 arg2" + System .lineSeparator (), output );
125125 }
126126
127127 @ Test
128128 @ InjectMojo (goal = "java" )
129129 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.JSR512DummyMain3" )
130- void testJSR512StaticMainNoArgs (ExecJavaMojo mojo ) throws Exception {
130+ void jsr512StaticMainNoArgs (ExecJavaMojo mojo ) throws Exception {
131131 String output = execute (mojo );
132132 assertEquals ("Correct choice" + System .lineSeparator (), output );
133133 }
134134
135135 @ Test
136136 @ InjectMojo (goal = "java" )
137137 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.JSR512DummyMain6" )
138- public void testJSR512PackagePrivateStaticMainNoArgs (ExecJavaMojo mojo ) throws Exception {
138+ void jsr512PackagePrivateStaticMainNoArgs (ExecJavaMojo mojo ) throws Exception {
139139 String output = execute (mojo );
140140 assertEquals ("Correct choice" + System .lineSeparator (), output );
141141 }
@@ -144,15 +144,15 @@ public void testJSR512PackagePrivateStaticMainNoArgs(ExecJavaMojo mojo) throws E
144144 @ InjectMojo (goal = "java" )
145145 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.JSR512DummyMain7" )
146146 @ MojoParameter (name = "arguments" , value = "arg1,arg2" )
147- public void testJSR512PackagePrivateStaticMainWithArgs (ExecJavaMojo mojo ) throws Exception {
147+ void jsr512PackagePrivateStaticMainWithArgs (ExecJavaMojo mojo ) throws Exception {
148148 String output = execute (mojo );
149149 assertEquals ("Correct choice arg1 arg2" + System .lineSeparator (), output );
150150 }
151151
152152 @ Test
153153 @ InjectMojo (goal = "java" )
154154 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.JSR512DummyMain4" )
155- void testJSR512FailureInstanceMainPrivateNoArgsConstructor (ExecJavaMojo mojo ) {
155+ void jsr512FailureInstanceMainPrivateNoArgsConstructor (ExecJavaMojo mojo ) {
156156 MojoExecutionException exception = assertThrows (MojoExecutionException .class , () -> execute (mojo ));
157157 assertEquals (
158158 "The specified mainClass doesn't contain a main method with appropriate signature." ,
@@ -163,7 +163,7 @@ void testJSR512FailureInstanceMainPrivateNoArgsConstructor(ExecJavaMojo mojo) {
163163 @ InjectMojo (goal = "java" )
164164 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.JSR512DummyMain5" )
165165 @ MojoParameter (name = "arguments" , value = "arg1,arg2" )
166- void testJSR512InheritedMain (ExecJavaMojo mojo ) throws Exception {
166+ void jsr512InheritedMain (ExecJavaMojo mojo ) throws Exception {
167167 String output = execute (mojo );
168168 assertEquals ("Correct choice arg1 arg2" + System .lineSeparator (), output );
169169 }
@@ -177,7 +177,7 @@ void testJSR512InheritedMain(ExecJavaMojo mojo) throws Exception {
177177 */
178178 @ Test
179179 @ InjectMojo (goal = "java" , pom = "src/test/projects/project5/pom.xml" )
180- void testEmptySystemProperty (ExecJavaMojo mojo ) throws Exception {
180+ void emptySystemProperty (ExecJavaMojo mojo ) throws Exception {
181181
182182 assertNull (System .getProperty ("test.name" ), "System property not yet created" );
183183
@@ -196,7 +196,7 @@ void testEmptySystemProperty(ExecJavaMojo mojo) throws Exception {
196196 @ Test
197197 @ InjectMojo (goal = "java" )
198198 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.ThrowingMain" )
199- void testRunWhichThrowsExceptionIsNotWrappedInInvocationTargetException (ExecJavaMojo mojo ) {
199+ void runWhichThrowsExceptionIsNotWrappedInInvocationTargetException (ExecJavaMojo mojo ) {
200200 MojoExecutionException exception = assertThrows (MojoExecutionException .class , () -> execute (mojo ));
201201 assertInstanceOf (IOException .class , exception .getCause ());
202202 assertEquals ("expected IOException thrown by test" , exception .getCause ().getMessage ());
@@ -255,7 +255,7 @@ void testRunWhichThrowsExceptionIsNotWrappedInInvocationTargetException(ExecJava
255255 @ InjectMojo (goal = "java" )
256256 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.MainWithThreads" )
257257 @ MojoParameter (name = "arguments" , value = "cancelTimer" )
258- void testWaitNoDaemonThreads (ExecJavaMojo mojo ) throws Exception {
258+ void waitNoDaemonThreads (ExecJavaMojo mojo ) throws Exception {
259259 String output = execute (mojo );
260260 assertEquals (MainWithThreads .ALL_EXITED , output .trim ());
261261 }
@@ -271,7 +271,7 @@ void testWaitNoDaemonThreads(ExecJavaMojo mojo) throws Exception {
271271 @ InjectMojo (goal = "java" )
272272 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.MainWithThreads" )
273273 @ MojoParameter (name = "daemonThreadJoinTimeout" , value = "4000" )
274- void testWaitNonInterruptibleDaemonThreads (ExecJavaMojo mojo ) throws Exception {
274+ void waitNonInterruptibleDaemonThreads (ExecJavaMojo mojo ) throws Exception {
275275 String output = execute (mojo );
276276 assertEquals (MainWithThreads .TIMER_IGNORED , output .trim ());
277277 }
@@ -290,7 +290,7 @@ void testWaitNonInterruptibleDaemonThreads(ExecJavaMojo mojo) throws Exception {
290290 @ MojoParameter (name = "daemonThreadJoinTimeout" , value = "3000" )
291291 @ MojoParameter (name = "stopUnresponsiveDaemonThreads" , value = "true" )
292292 @ EnabledForJreRange (max = JRE .JAVA_19 )
293- void testUncooperativeThread (ExecJavaMojo mojo ) throws Exception {
293+ void uncooperativeThread (ExecJavaMojo mojo ) throws Exception {
294294 String output = execute (mojo );
295295 // note: execute() will wait a little bit before returning the output,
296296 // thereby allowing the stop()'ed thread to output the final "(f)".
@@ -303,7 +303,7 @@ void testUncooperativeThread(ExecJavaMojo mojo) throws Exception {
303303 @ MojoParameter (name = "daemonThreadJoinTimeout" , value = "3000" )
304304 @ MojoParameter (name = "stopUnresponsiveDaemonThreads" , value = "true" )
305305 @ EnabledForJreRange (min = JRE .JAVA_20 )
306- void testUncooperativeThreadJdk20 (ExecJavaMojo mojo ) throws Exception {
306+ void uncooperativeThreadJdk20 (ExecJavaMojo mojo ) throws Exception {
307307 String output = execute (mojo );
308308 // note: execute() will wait a little bit before returning the output,
309309 // thereby allowing the stop()'ed thread to output the final "(f)".
@@ -332,7 +332,7 @@ void testUncooperativeThreadJdk20(ExecJavaMojo mojo) throws Exception {
332332 @ InjectMojo (goal = "java" )
333333 @ MojoParameter (name = "mainClass" , value = "org.codehaus.mojo.exec.DummyMain" )
334334 @ MojoParameter (name = "commandlineArgs" , value = "\" Arg1\" \" Arg2a Arg2b\" " )
335- void testRunWithArgs (ExecJavaMojo mojo ) throws Exception {
335+ void runWithArgs (ExecJavaMojo mojo ) throws Exception {
336336 String resultString = execute (mojo );
337337
338338 String LS = System .lineSeparator ();
@@ -347,7 +347,7 @@ void testRunWithArgs(ExecJavaMojo mojo) throws Exception {
347347 */
348348 @ Test
349349 @ InjectMojo (goal = "java" , pom = "src/test/projects/project16/pom.xml" )
350- void testExcludedClasspathElementSlf4jSimple (ExecJavaMojo mojo ) throws Exception {
350+ void excludedClasspathElementSlf4jSimple (ExecJavaMojo mojo ) throws Exception {
351351 String LS = System .lineSeparator ();
352352
353353 // slf4j-simple
@@ -362,7 +362,7 @@ void testExcludedClasspathElementSlf4jSimple(ExecJavaMojo mojo) throws Exception
362362
363363 @ Test
364364 @ InjectMojo (goal = "java" , pom = "src/test/projects/project17/pom.xml" )
365- void testExcludedClasspathElementSlf4jJdk14 (ExecJavaMojo mojo ) throws Exception {
365+ void excludedClasspathElementSlf4jJdk14 (ExecJavaMojo mojo ) throws Exception {
366366 ByteArrayOutputStream stdout = new ByteArrayOutputStream ();
367367 ByteArrayOutputStream stderr = new ByteArrayOutputStream ();
368368 execute (mojo , stdout , stderr );
@@ -379,7 +379,7 @@ void testExcludedClasspathElementSlf4jJdk14(ExecJavaMojo mojo) throws Exception
379379 */
380380 @ Test
381381 @ InjectMojo (goal = "java" , pom = "src/test/projects/project18/pom.xml" )
382- void testProjectProperties (ExecJavaMojo mojo ) throws Exception {
382+ void projectProperties (ExecJavaMojo mojo ) throws Exception {
383383 // only mojo configuration is taken from the pom, we have to mock the project properties ourselves
384384 Properties properties = new Properties ();
385385 properties .put ("test.name" , "project18 project" );
0 commit comments