Skip to content

Commit ca6a77b

Browse files
1 parent 5c9b8b5 commit ca6a77b

File tree

10 files changed

+101
-104
lines changed

10 files changed

+101
-104
lines changed

src/test/java/org/codehaus/plexus/classworlds/ClassWorldTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,36 +36,36 @@ class ClassWorldTest extends AbstractClassWorldsTestCase {
3636
private ClassWorld world;
3737

3838
@BeforeEach
39-
public void setUp() {
39+
void setUp() {
4040
this.world = new ClassWorld();
4141
}
4242

4343
@AfterEach
44-
public void tearDown() {
44+
void tearDown() {
4545
this.world = null;
4646
}
4747

4848
@Test
49-
void testEmpty() {
49+
void empty() {
5050
assertTrue(this.world.getRealms().isEmpty());
5151
}
5252

5353
@Test
54-
void testNewRealm() throws Exception {
54+
void newRealm() throws Exception {
5555
ClassRealm realm = this.world.newRealm("foo");
5656

5757
assertNotNull(realm);
5858
}
5959

6060
@Test
61-
void testGetRealm() throws Exception {
61+
void getRealm() throws Exception {
6262
ClassRealm realm = this.world.newRealm("foo");
6363

6464
assertSame(realm, this.world.getRealm("foo"));
6565
}
6666

6767
@Test
68-
void testNewRealm_Duplicate() {
68+
void newRealmDuplicate() {
6969
try {
7070
this.world.newRealm("foo");
7171
this.world.newRealm("foo");
@@ -81,7 +81,7 @@ void testNewRealm_Duplicate() {
8181
}
8282

8383
@Test
84-
void testGetRealm_NoSuch() {
84+
void getRealmNoSuch() {
8585
try {
8686
this.world.getRealm("foo");
8787
fail("throw NoSuchRealmException");
@@ -95,7 +95,7 @@ void testGetRealm_NoSuch() {
9595
}
9696

9797
@Test
98-
void testGetRealms() throws Exception {
98+
void getRealms() throws Exception {
9999
assertTrue(this.world.getRealms().isEmpty());
100100

101101
ClassRealm foo = this.world.newRealm("foo");
@@ -112,7 +112,7 @@ void testGetRealms() throws Exception {
112112
}
113113

114114
@Test
115-
void testPLX334() throws Exception {
115+
void plx334() throws Exception {
116116
ClassLoader loader = new URLClassLoader(new URL[] {getJarUrl("component1-1.0.jar")});
117117
world.newRealm("netbeans", loader);
118118
ClassRealm plexus = world.newRealm("plexus");

src/test/java/org/codehaus/plexus/classworlds/UrlUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class UrlUtilsTest {
2424

2525
@Test
26-
public void testNormalizeUrlPath() {
26+
void normalizeUrlPath() {
2727
assertEquals("org/codehaus/Test.class", UrlUtils.normalizeUrlPath("org/codehaus/Test.class"));
2828
assertEquals("org/Test.class", UrlUtils.normalizeUrlPath("org/codehaus/../Test.class"));
2929
assertEquals("../../some.jar/org/Test.class", UrlUtils.normalizeUrlPath("../../some.jar/org/Test.class"));

src/test/java/org/codehaus/plexus/classworlds/launcher/ConfigurationParserTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ConfigurationParserTest extends AbstractClassWorldsTestCase {
1212
final ConfigurationParser configurator = new ConfigurationParser(null, System.getProperties());
1313

1414
@Test
15-
void testFilter_Unterminated() {
15+
void filterUnterminated() {
1616
try {
1717
this.configurator.filter("${cheese");
1818
fail("throw ConfigurationException");
@@ -23,7 +23,7 @@ void testFilter_Unterminated() {
2323
}
2424

2525
@Test
26-
void testFilter_Solitary() throws Exception {
26+
void filterSolitary() throws Exception {
2727
System.setProperty("classworlds.test.prop", "test prop value");
2828

2929
String result = this.configurator.filter("${classworlds.test.prop}");
@@ -32,7 +32,7 @@ void testFilter_Solitary() throws Exception {
3232
}
3333

3434
@Test
35-
void testFilter_AtStart() throws Exception {
35+
void filterAtStart() throws Exception {
3636
System.setProperty("classworlds.test.prop", "test prop value");
3737

3838
String result = this.configurator.filter("${classworlds.test.prop}cheese");
@@ -41,7 +41,7 @@ void testFilter_AtStart() throws Exception {
4141
}
4242

4343
@Test
44-
void testFilter_AtEnd() throws Exception {
44+
void filterAtEnd() throws Exception {
4545
System.setProperty("classworlds.test.prop", "test prop value");
4646

4747
String result = this.configurator.filter("cheese${classworlds.test.prop}");
@@ -50,7 +50,7 @@ void testFilter_AtEnd() throws Exception {
5050
}
5151

5252
@Test
53-
void testFilter_Multiple() throws Exception {
53+
void filterMultiple() throws Exception {
5454
System.setProperty("classworlds.test.prop.one", "test prop value one");
5555

5656
System.setProperty("classworlds.test.prop.two", "test prop value two");
@@ -62,7 +62,7 @@ void testFilter_Multiple() throws Exception {
6262
}
6363

6464
@Test
65-
void testFilter_NonExistent() {
65+
void filterNonExistent() {
6666
try {
6767
this.configurator.filter("${gollygeewillikers}");
6868
fail("throw ConfigurationException");
@@ -73,7 +73,7 @@ void testFilter_NonExistent() {
7373
}
7474

7575
@Test
76-
void testFilter_InMiddle() throws Exception {
76+
void filterInMiddle() throws Exception {
7777
System.setProperty("classworlds.test.prop", "test prop value");
7878

7979
String result = this.configurator.filter("cheese${classworlds.test.prop}toast");

src/test/java/org/codehaus/plexus/classworlds/launcher/ConfiguratorTest.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ class ConfiguratorTest extends AbstractClassWorldsTestCase {
4242
private Configurator configurator;
4343

4444
@BeforeEach
45-
public void setUp() {
45+
void setUp() {
4646
this.launcher = new Launcher();
4747
this.configurator = new Configurator(this.launcher);
4848
}
4949

5050
@AfterEach
51-
public void tearDown() {
51+
void tearDown() {
5252
this.launcher = null;
5353
this.configurator = null;
5454
System.getProperties().remove("set.using.existent");
@@ -60,7 +60,7 @@ public void tearDown() {
6060
}
6161

6262
@Test
63-
void testConfigure_Nonexistent() throws Exception {
63+
void configureNonexistent() throws Exception {
6464
try {
6565
this.configurator.configure(getConfigPath("notfound.conf"));
6666
fail("throw FileNotFoundException");
@@ -70,7 +70,7 @@ void testConfigure_Nonexistent() throws Exception {
7070
}
7171

7272
@Test
73-
void testConfigure_DuplicateMain() throws Exception {
73+
void configureDuplicateMain() throws Exception {
7474
try {
7575
this.configurator.configure(getConfigPath("dupe-main.conf"));
7676
fail("throw ConfigurationException");
@@ -81,7 +81,7 @@ void testConfigure_DuplicateMain() throws Exception {
8181
}
8282

8383
@Test
84-
void testConfigure_DuplicateRealm() throws Exception {
84+
void configureDuplicateRealm() throws Exception {
8585
try {
8686
this.configurator.configure(getConfigPath("dupe-realm.conf"));
8787
fail("throw DuplicateRealmException");
@@ -92,7 +92,7 @@ void testConfigure_DuplicateRealm() throws Exception {
9292
}
9393

9494
@Test
95-
void testConfigure_EarlyImport() throws Exception {
95+
void configureEarlyImport() throws Exception {
9696
try {
9797
this.configurator.configure(getConfigPath("early-import.conf"));
9898
fail("throw ConfigurationException");
@@ -103,7 +103,7 @@ void testConfigure_EarlyImport() throws Exception {
103103
}
104104

105105
@Test
106-
void testConfigure_RealmSyntax() throws Exception {
106+
void configureRealmSyntax() throws Exception {
107107
try {
108108
this.configurator.configure(getConfigPath("realm-syntax.conf"));
109109
fail("throw ConfigurationException");
@@ -114,7 +114,7 @@ void testConfigure_RealmSyntax() throws Exception {
114114
}
115115

116116
@Test
117-
void testConfigure_Valid() throws Exception {
117+
void configureValid() throws Exception {
118118
this.configurator.configure(getConfigPath("valid.conf"));
119119

120120
assertEquals("org.apache.maven.app.App", this.launcher.getMainClassName());
@@ -161,7 +161,7 @@ void testConfigure_Valid() throws Exception {
161161
}
162162

163163
@Test
164-
void testConfigure_Optionally_NonExistent() throws Exception {
164+
void configureOptionallyNonExistent() throws Exception {
165165
this.configurator.configure(getConfigPath("optionally-nonexistent.conf"));
166166

167167
assertEquals("org.apache.maven.app.App", this.launcher.getMainClassName());
@@ -184,7 +184,7 @@ void testConfigure_Optionally_NonExistent() throws Exception {
184184
}
185185

186186
@Test
187-
void testConfigure_Optionally_Existent() throws Exception {
187+
void configureOptionallyExistent() throws Exception {
188188
this.configurator.configure(getConfigPath("optionally-existent.conf"));
189189

190190
assertEquals("org.apache.maven.app.App", this.launcher.getMainClassName());
@@ -209,7 +209,7 @@ void testConfigure_Optionally_Existent() throws Exception {
209209
}
210210

211211
@Test
212-
void testConfigure_Unhandled() throws Exception {
212+
void configureUnhandled() throws Exception {
213213
try {
214214
this.configurator.configure(getConfigPath("unhandled.conf"));
215215
fail("throw ConfigurationException");
@@ -220,7 +220,7 @@ void testConfigure_Unhandled() throws Exception {
220220
}
221221

222222
@Test
223-
void testSet_Using_Existent() throws Exception {
223+
void setUsingExistent() throws Exception {
224224
assertNull(System.getProperty("set.using.existent"));
225225

226226
this.configurator.configure(getConfigPath("set-using-existent.conf"));
@@ -229,7 +229,7 @@ void testSet_Using_Existent() throws Exception {
229229
}
230230

231231
@Test
232-
void testSet_Using_NonExistent() throws Exception {
232+
void setUsingNonExistent() throws Exception {
233233
assertNull(System.getProperty("set.using.nonexistent"));
234234

235235
this.configurator.configure(getConfigPath("set-using-nonexistent.conf"));
@@ -238,7 +238,7 @@ void testSet_Using_NonExistent() throws Exception {
238238
}
239239

240240
@Test
241-
void testSet_Using_NonExistent_Default() throws Exception {
241+
void setUsingNonExistentDefault() throws Exception {
242242
assertNull(System.getProperty("set.using.nonexistent.default"));
243243

244244
this.configurator.configure(getConfigPath("set-using-nonexistent.conf"));
@@ -247,7 +247,7 @@ void testSet_Using_NonExistent_Default() throws Exception {
247247
}
248248

249249
@Test
250-
void testSet_Using_NonExistent_Override() throws Exception {
250+
void setUsingNonExistentOverride() throws Exception {
251251
assertNull(System.getProperty("set.using.default"));
252252
System.setProperty("set.using.default", "testSet_Using_NonExistent_Override");
253253

@@ -257,7 +257,7 @@ void testSet_Using_NonExistent_Override() throws Exception {
257257
}
258258

259259
@Test
260-
void testSet_Using_Existent_Override() throws Exception {
260+
void setUsingExistentOverride() throws Exception {
261261
assertNull(System.getProperty("set.using.existent"));
262262
System.setProperty("set.using.existent", "testSet_Using_Existent_Override");
263263

@@ -267,7 +267,7 @@ void testSet_Using_Existent_Override() throws Exception {
267267
}
268268

269269
@Test
270-
void testSet_Using_Existent_Default() throws Exception {
270+
void setUsingExistentDefault() throws Exception {
271271
assertNull(System.getProperty("set.using.default"));
272272

273273
this.configurator.configure(getConfigPath("set-using-existent.conf"));
@@ -276,7 +276,7 @@ void testSet_Using_Existent_Default() throws Exception {
276276
}
277277

278278
@Test
279-
void testSet_Using_Missing_Default() throws Exception {
279+
void setUsingMissingDefault() throws Exception {
280280
assertNull(System.getProperty("set.using.missing"));
281281

282282
this.configurator.configure(getConfigPath("set-using-missing.conf"));
@@ -285,7 +285,7 @@ void testSet_Using_Missing_Default() throws Exception {
285285
}
286286

287287
@Test
288-
void testSet_Using_Missing_Override() throws Exception {
288+
void setUsingMissingOverride() throws Exception {
289289
assertNull(System.getProperty("set.using.missing"));
290290
System.setProperty("set.using.missing", "testSet_Using_Missing_Override");
291291

@@ -295,7 +295,7 @@ void testSet_Using_Missing_Override() throws Exception {
295295
}
296296

297297
@Test
298-
void testSet_Using_Filtered_Default() throws Exception {
298+
void setUsingFilteredDefault() throws Exception {
299299
assertNull(System.getProperty("set.using.filtered.default"));
300300

301301
this.configurator.configure(getConfigPath("set-using-missing.conf"));
@@ -305,7 +305,7 @@ void testSet_Using_Filtered_Default() throws Exception {
305305

306306
@SuppressWarnings("OptionalGetWithoutIsPresent")
307307
@Test
308-
void testFromFromFrom() throws Exception {
308+
void fromFromFrom() throws Exception {
309309
this.configurator.configure(getConfigPath("valid-from-from-from.conf"));
310310

311311
assertEquals("com.from.from.from.Main", this.launcher.getMainClassName());

0 commit comments

Comments
 (0)