diff options
author | Tomasz Zarna | 2013-08-06 07:49:05 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2013-08-23 06:09:38 -0400 |
commit | 0d545d83a640ac5ec9353e3133e7583a945a0e69 (patch) | |
tree | aeb419150df863ba6ef82fa90c7987eb64c82a21 | |
parent | 42205f0937b4473ccd1306efabe11cf54886e75d (diff) | |
download | org.eclipse.mylyn.reviews-0d545d83a640ac5ec9353e3133e7583a945a0e69.zip org.eclipse.mylyn.reviews-0d545d83a640ac5ec9353e3133e7583a945a0e69.tar.gz org.eclipse.mylyn.reviews-0d545d83a640ac5ec9353e3133e7583a945a0e69.tar.xz |
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.java | 9 |
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 |