File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
test/jdk/tools/jpackage/share Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -75,17 +75,13 @@ public static Collection<?> input() {
75
75
}
76
76
77
77
public JavaOptionsEqualsTest (String javaAppDesc , String [] jpackageArgs ) {
78
- cmd = JPackageCommand .helloAppImage (javaAppDesc );
79
- if (jpackageArgs != null ) {
80
- cmd .addArguments (jpackageArgs );
81
- }
78
+ cmd = JPackageCommand .helloAppImage (javaAppDesc ).addArguments (jpackageArgs ).ignoreFakeRuntime ();
82
79
}
83
80
84
81
@ Test
85
82
public void test () {
86
83
cmd .executeAndAssertHelloAppImageCreated ();
87
84
List <String > output = HelloApp .executeLauncher (cmd ).getOutput ();
88
- TKit .assertNotNull (output , "output is null" );
89
85
TKit .assertTextStream (WARNING1 ).apply (output .stream ());
90
86
TKit .assertTextStream (WARNING2 ).apply (output .stream ());
91
87
}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public static Collection<?> input() {
76
76
77
77
public JavaOptionsTest (String javaAppDesc , String [] jpackageArgs ,
78
78
String [] expectedParams ) {
79
- cmd = JPackageCommand .helloAppImage (javaAppDesc );
79
+ cmd = JPackageCommand .helloAppImage (javaAppDesc ). ignoreFakeRuntime () ;
80
80
if (jpackageArgs != null ) {
81
81
cmd .addArguments (jpackageArgs );
82
82
}
@@ -90,7 +90,6 @@ public void test() {
90
90
91
91
// 2.) run the launcher it generated
92
92
List <String > output = HelloApp .executeLauncher (cmd ).getOutput ();
93
- TKit .assertNotNull (output , "output is null" );
94
93
for (String expect : expected ) {
95
94
TKit .assertTextStream (expect ).apply (output .stream ());
96
95
}
You can’t perform that action at this time.
0 commit comments