summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-08-06 07:49:05 (EDT)
committerGerrit Code Review @ Eclipse.org2013-08-23 06:09:38 (EDT)
commit0d545d83a640ac5ec9353e3133e7583a945a0e69 (patch)
treeaeb419150df863ba6ef82fa90c7987eb64c82a21
parent42205f0937b4473ccd1306efabe11cf54886e75d (diff)
downloadorg.eclipse.mylyn.reviews-0d545d83a640ac5ec9353e3133e7583a945a0e69.zip
org.eclipse.mylyn.reviews-0d545d83a640ac5ec9353e3133e7583a945a0e69.tar.gz
org.eclipse.mylyn.reviews-0d545d83a640ac5ec9353e3133e7583a945a0e69.tar.bz2
ReviewsDataLocatorTest.testFilePath fails on Windows in Maven buildv2.0.1R_3_9_1refs/changes/65/15165/3
Change-Id: I92eb0a4ee4bdc43cb70f5442fe755eb06db444c0 Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
-rw-r--r--org.eclipse.mylyn.reviews.core.tests/src/org/eclipse/mylyn/reviews/core/spi/remote/ReviewsDataLocatorTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.reviews.core.tests/src/org/eclipse/mylyn/reviews/core/spi/remote/ReviewsDataLocatorTest.java b/org.eclipse.mylyn.reviews.core.tests/src/org/eclipse/mylyn/reviews/core/spi/remote/ReviewsDataLocatorTest.java
index bf2378a..0d695f5 100644
--- a/org.eclipse.mylyn.reviews.core.tests/src/org/eclipse/mylyn/reviews/core/spi/remote/ReviewsDataLocatorTest.java
+++ b/org.eclipse.mylyn.reviews.core.tests/src/org/eclipse/mylyn/reviews/core/spi/remote/ReviewsDataLocatorTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011 GitHub Inc. and others.
+ * Copyright (c) 2011, 2013 GitHub Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -36,9 +36,10 @@ public class ReviewsDataLocatorTest {
@Test
public void testFilePath() {
- String testPath = FileUtils.getTempDirectory().getAbsolutePath();
- assertThat(reviewDataLocator.getFilePath("Parent", "Class", "123", "txt").toPortableString(), is(testPath
- + "/reviews_bin/Parent/Class/123.txt"));
+ IPath testPath = Path.fromOSString(FileUtils.getTempDirectory().getAbsolutePath());
+ testPath = testPath.append("/reviews_bin/Parent/Class/123.txt");
+
+ assertThat(reviewDataLocator.getFilePath("Parent", "Class", "123", "txt"), is(testPath));
}
@Test