21
21
* questions.
22
22
*/
23
23
24
+ import static jdk .jpackage .test .JPackageStringBundle .MAIN ;
25
+
24
26
import java .nio .file .Path ;
25
27
import java .util .Map ;
26
28
import jdk .jpackage .test .Annotations .Parameter ;
27
29
import jdk .jpackage .test .Annotations .Test ;
28
30
import jdk .jpackage .test .FileAssociations ;
29
31
import jdk .jpackage .test .JPackageCommand ;
30
- import jdk .jpackage .test .JPackageStringBundle ;
31
32
import jdk .jpackage .test .PackageTest ;
32
33
import jdk .jpackage .test .PackageType ;
33
34
import jdk .jpackage .test .TKit ;
@@ -120,8 +121,8 @@ public static void testNoMime() {
120
121
}).addInitializer (cmd -> {
121
122
cmd .addArguments ("--file-associations" , propFile );
122
123
cmd .validateOutput (
123
- JPackageStringBundle . MAIN .cannedFormattedString ("error.no-content-types-for-file-association" , 1 ),
124
- JPackageStringBundle . MAIN .cannedFormattedString ("error.no-content-types-for-file-association.advice" , 1 ));
124
+ MAIN .cannedFormattedString ("error.no-content-types-for-file-association" , 1 ),
125
+ MAIN .cannedFormattedString ("error.no-content-types-for-file-association.advice" , 1 ));
125
126
}).run ();
126
127
}
127
128
@@ -138,8 +139,8 @@ public static void testTooManyMimes() {
138
139
}).addInitializer (cmd -> {
139
140
cmd .addArguments ("--file-associations" , propFile );
140
141
cmd .validateOutput (
141
- JPackageStringBundle . MAIN .cannedFormattedString ("error.too-many-content-types-for-file-association" , 1 ),
142
- JPackageStringBundle . MAIN .cannedFormattedString ("error.too-many-content-types-for-file-association.advice" , 1 ));
142
+ MAIN .cannedFormattedString ("error.too-many-content-types-for-file-association" , 1 ),
143
+ MAIN .cannedFormattedString ("error.too-many-content-types-for-file-association.advice" , 1 ));
143
144
}).run ();
144
145
}
145
146
0 commit comments