Skip to content

Commit a31ac5e

Browse files
committed
update test
1 parent df9b015 commit a31ac5e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

test/jaxp/javax/xml/jaxp/libs/jaxp/library/JUnitTestUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
import java.nio.file.Files;
2727
import java.nio.file.Path;
2828
import java.nio.file.StandardCopyOption;
29+
import jdk.test.lib.Platform;
2930

3031
public class JUnitTestUtil {
3132
public static final String CLS_DIR = System.getProperty("test.classes");
3233
public static final String SRC_DIR = System.getProperty("test.src");
33-
public static final boolean isWindows = System.getProperty("os.name").contains("Windows");
3434

3535
/**
3636
* Returns the System identifier (URI) of the source.
@@ -40,7 +40,7 @@ public class JUnitTestUtil {
4040
public static String getSystemId(String path) {
4141
if (path == null) return null;
4242
String xmlSysId = "file://" + path;
43-
if (isWindows) {
43+
if (Platform.isWindows()) {
4444
path = path.replace('\\', '/');
4545
xmlSysId = "file:///" + path;
4646
}

test/jaxp/javax/xml/jaxp/unittest/transform/PropertiesTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* @test
4141
* @bug 8344925
4242
* @summary Transformer properties tests
43-
* @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest
43+
* @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest /test/lib
4444
* @run junit/othervm transform.PropertiesTest
4545
*/
4646
public class PropertiesTest {
@@ -91,7 +91,6 @@ public void test(boolean generateTranslet, String name, String packageName,
9191
String path = (destination != null) ? destination + expected : new File(xslFile).getParent() + expected;
9292

9393
if (generateTranslet) {
94-
//Files.list(Path.of(path)).forEach(System.out::println);
9594
assertTrue(Files.exists(Path.of(path)), "Translet is expected at " + expected);
9695
} else {
9796
assertTrue(Files.notExists(Path.of(path)), "Translet is not to be generated.");

0 commit comments

Comments
 (0)