|
|
|
@ -49,6 +49,7 @@ class CommandLineBuilderTests { |
|
|
|
public static final String CLASS_NAME = ClassWithMainMethod.class.getName(); |
|
|
|
public static final String CLASS_NAME = ClassWithMainMethod.class.getName(); |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
|
|
|
|
@SuppressWarnings("NullAway") // Maven can't deal with @Nullable arrays / varargs
|
|
|
|
void buildWithNullJvmArgumentsIsIgnored() { |
|
|
|
void buildWithNullJvmArgumentsIsIgnored() { |
|
|
|
assertThat(CommandLineBuilder.forMainClass(CLASS_NAME).withJvmArguments((String[]) null).build()) |
|
|
|
assertThat(CommandLineBuilder.forMainClass(CLASS_NAME).withJvmArguments((String[]) null).build()) |
|
|
|
.containsExactly(CLASS_NAME); |
|
|
|
.containsExactly(CLASS_NAME); |
|
|
|
@ -80,6 +81,7 @@ class CommandLineBuilderTests { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
|
|
|
|
@SuppressWarnings("NullAway") // Maven can't deal with @Nullable arrays / varargs
|
|
|
|
void buildWithNullArgumentsIsIgnored() { |
|
|
|
void buildWithNullArgumentsIsIgnored() { |
|
|
|
assertThat(CommandLineBuilder.forMainClass(CLASS_NAME).withArguments((String[]) null).build()) |
|
|
|
assertThat(CommandLineBuilder.forMainClass(CLASS_NAME).withArguments((String[]) null).build()) |
|
|
|
.containsExactly(CLASS_NAME); |
|
|
|
.containsExactly(CLASS_NAME); |
|
|
|
|