Take File.separator into account build-23136 build-23140 build-23142 build-23144 build-23146 build-23147 build-23149
authorDmitry Neverov <dmitry.neverov@gmail.com>
Thu, 22 Mar 2012 09:08:30 +0000 (13:08 +0400)
committerDmitry Neverov <dmitry.neverov@gmail.com>
Thu, 22 Mar 2012 09:08:30 +0000 (13:08 +0400)
git-tests/src/jetbrains/buildServer/buildTriggers/vcs/git/tests/browser/BrowserSupportTest.java

index e9ec62f7025fd74dd2b7f12f5f6530b9be972360..c30c583bd4fd206daf3a9efc5b1d2680f46b041c 100644 (file)
@@ -124,7 +124,7 @@ public class BrowserSupportTest {
 
   private void assertFile(@NotNull Element f, @NotNull String name, @NotNull String fullName) {
     assertThat(f.getName(), equalTo(name));
-    assertThat(f.getFullName(), equalTo(fullName));
+    assertThat(f.getFullName(), equalTo(fullName.replaceAll("/", File.separator)));
     assertTrue(f.isLeaf());
     assertTrue(f.isContentAvailable());
     assertThat(f, hasContentAsInRepository());
@@ -132,7 +132,7 @@ public class BrowserSupportTest {
 
   private void assertDir(@NotNull Element dir, @NotNull String name, @NotNull String fullName) throws IOException {
     assertThat(dir.getName(), equalTo(name));
-    assertThat(dir.getFullName(), equalTo(fullName));
+    assertThat(dir.getFullName(), equalTo(fullName.replaceAll("/", File.separator)));
     assertThat(dir, is(directory()));
     assertThat(dir, doesNotSupportInputStream());
     assertThat(dir, doesNotSupportSize());