提交 f4d30402 authored 作者: Thomas Mueller's avatar Thomas Mueller

Improved compatibility with the Java 7 FileSystem abstraction.

上级 af5c3046
...@@ -64,7 +64,7 @@ public class TestConnectionInfo extends TestBase { ...@@ -64,7 +64,7 @@ public class TestConnectionInfo extends TestBase {
char differentFileSeparator = File.separatorChar == '/' ? '\\' : '/'; char differentFileSeparator = File.separatorChar == '/' ? '\\' : '/';
ConnectionInfo connectionInfo = new ConnectionInfo("test" + differentFileSeparator + "subDir"); ConnectionInfo connectionInfo = new ConnectionInfo("test" + differentFileSeparator + "subDir");
File file = new File("test" + File.separatorChar + "subDir"); File file = new File("test" + File.separatorChar + "subDir");
assertEquals(file.getCanonicalPath(), connectionInfo.getName()); assertEquals(file.getCanonicalPath().replace('\\', '/'), connectionInfo.getName());
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论