|
@@ -30,7 +30,6 @@ public class PathUtilsTest {
|
|
|
assertEquals(".txt", PathUtils.getExtension("/base/file.log.txt"));
|
|
assertEquals(".txt", PathUtils.getExtension("/base/file.log.txt"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Ignore
|
|
|
|
|
@Test
|
|
@Test
|
|
|
public void testChangeExtension() {
|
|
public void testChangeExtension() {
|
|
|
assertEquals(Paths.get("file.txt"), PathUtils.changeExtension("file.txt", ".txt"));
|
|
assertEquals(Paths.get("file.txt"), PathUtils.changeExtension("file.txt", ".txt"));
|
|
@@ -44,7 +43,6 @@ public class PathUtilsTest {
|
|
|
assertEquals(Paths.get("/base","name","file.dat"), PathUtils.changeExtension("/base/name\\file.txt", ".dat"));
|
|
assertEquals(Paths.get("/base","name","file.dat"), PathUtils.changeExtension("/base/name\\file.txt", ".dat"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Ignore
|
|
|
|
|
@Test
|
|
@Test
|
|
|
public void testChangeExtensionP() {
|
|
public void testChangeExtensionP() {
|
|
|
assertEquals(Paths.get("file.txt"), pce("file.txt", ".txt"));
|
|
assertEquals(Paths.get("file.txt"), pce("file.txt", ".txt"));
|
|
@@ -62,7 +60,6 @@ public class PathUtilsTest {
|
|
|
return PathUtils.changeExtension(Paths.get(path), ext);
|
|
return PathUtils.changeExtension(Paths.get(path), ext);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Ignore
|
|
|
|
|
@Test
|
|
@Test
|
|
|
public void testGetSimpleName() {
|
|
public void testGetSimpleName() {
|
|
|
assertEquals("file", PathUtils.getSimpleName("c:/ms/file"));
|
|
assertEquals("file", PathUtils.getSimpleName("c:/ms/file"));
|
|
@@ -78,7 +75,6 @@ public class PathUtilsTest {
|
|
|
assertEquals("file.info", PathUtils.getSimpleName("/ms/file.info.txt"));
|
|
assertEquals("file.info", PathUtils.getSimpleName("/ms/file.info.txt"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Ignore
|
|
|
|
|
@Test
|
|
@Test
|
|
|
public void testFromURL() throws MalformedURLException {
|
|
public void testFromURL() throws MalformedURLException {
|
|
|
assertThrows(FileSystemNotFoundException.class, ()->{
|
|
assertThrows(FileSystemNotFoundException.class, ()->{
|