Skip to content

Commit

Permalink
Apply minor cleanup to PackageIT
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand authored and CSTDev committed Oct 22, 2019
1 parent 993fe90 commit 3ded135
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

Expand All @@ -29,11 +28,7 @@ public void testPackageWorksWhenUberjarIsFalse()

running = new RunningInvoker(testDir, false);
final MavenProcessInvocationResult result = running.execute(Collections.singletonList("package"),
new HashMap<String, String>() {
{
put("QUARKUS_PACKAGE_TYPES", "thin-jar");
}
});
Collections.singletonMap("QUARKUS_PACKAGE_TYPES", "thin-jar"));

assertThat(result.getProcess().waitFor()).isEqualTo(0);

Expand All @@ -48,11 +43,7 @@ public void testPackageWorksWhenUberjarIsTrue()

running = new RunningInvoker(testDir, false);
final MavenProcessInvocationResult result = running.execute(Collections.singletonList("package"),
new HashMap<String, String>() {
{
put("QUARKUS_PACKAGE_TYPES", "uber-jar");
}
});
Collections.singletonMap("QUARKUS_PACKAGE_TYPES", "uber-jar"));
assertThat(result.getProcess().waitFor()).isEqualTo(0);

final File targetDir = getTargetDir();
Expand Down

0 comments on commit 3ded135

Please sign in to comment.