diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2883LegacyRepoOfflineTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2883LegacyRepoOfflineTest.java index 111e86132d..268a1e3a00 100644 --- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2883LegacyRepoOfflineTest.java +++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2883LegacyRepoOfflineTest.java @@ -53,8 +53,8 @@ public class MavenITmng2883LegacyRepoOfflineTest public void testParentUnresolvable() throws Exception { - String testName = "parent"; - File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2883/" + testName ); + File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2883" ); + testDir = new File( testDir, "parent" ); Verifier verifier; @@ -150,8 +150,8 @@ public class MavenITmng2883LegacyRepoOfflineTest public void testDependencyUnresolvable() throws Exception { - String testName = "dependency"; - File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2883/" + testName ); + File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2883" ); + testDir = new File( testDir, "dependency" ); Verifier verifier; @@ -251,8 +251,8 @@ public class MavenITmng2883LegacyRepoOfflineTest public void testPluginUnresolvable() throws Exception { - String testName = "plugin"; - File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2883/" + testName ); + File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2883" ); + testDir = new File( testDir, "plugin" ); Verifier verifier;