summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-07-23 08:28:35 (EDT)
committerGerrit Code Review @ Eclipse.org2013-07-24 08:10:11 (EDT)
commit25f4c396a83b494832a3939785c0cca7a9fdaf8e (patch)
tree0069d66cf10aae841102767c5b27c5f3ef139663
parent599b14be570b41b0ecb412b1b5efea76fce4294d (diff)
downloadorg.eclipse.mylyn.reviews-25f4c396a83b494832a3939785c0cca7a9fdaf8e.zip
org.eclipse.mylyn.reviews-25f4c396a83b494832a3939785c0cca7a9fdaf8e.tar.gz
org.eclipse.mylyn.reviews-25f4c396a83b494832a3939785c0cca7a9fdaf8e.tar.bz2
fix failure in UiDataLocatorTest#testGetLocation on Windowsrefs/changes/73/14773/2
Change-Id: If5157fa75fc428f33198ff2785e43e7de3f7109a Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
-rw-r--r--org.eclipse.mylyn.reviews.tests/src/org/eclipse/mylyn/reviews/tests/ui/UiDataLocatorTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.reviews.tests/src/org/eclipse/mylyn/reviews/tests/ui/UiDataLocatorTest.java b/org.eclipse.mylyn.reviews.tests/src/org/eclipse/mylyn/reviews/tests/ui/UiDataLocatorTest.java
index 5989acf..42a6078 100644
--- a/org.eclipse.mylyn.reviews.tests/src/org/eclipse/mylyn/reviews/tests/ui/UiDataLocatorTest.java
+++ b/org.eclipse.mylyn.reviews.tests/src/org/eclipse/mylyn/reviews/tests/ui/UiDataLocatorTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012 Tasktop Technologies and others.
+ * Copyright (c) 2012, 2013 Tasktop Technologies 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
@@ -33,9 +33,9 @@ public class UiDataLocatorTest extends TestCase {
public void testGetLocation() {
ReviewsDataLocator locator = new ReviewsUiDataLocator();
String workSpaceRoot = ResourcesPlugin.getWorkspace().getRoot().getLocation().toString();
- String expectedPath = workSpaceRoot + "/.metadata/.mylyn/reviews_bin/Class/MyFile.txt";
- String systemPath = expectedPath.replaceAll("/", File.separator); //ensure platform neutrality
- IPath fileLocation = locator.getFilePath("", "Class", "MyFile", "txt");
+ String expectedPath = workSpaceRoot + "/.metadata/.mylyn/reviews_bin/Class/MyFile.txt"; //$NON-NLS-1$
+ String systemPath = expectedPath.replace('/', File.separatorChar); //ensure platform neutrality
+ IPath fileLocation = locator.getFilePath("", "Class", "MyFile", "txt"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
assertThat(fileLocation.toPortableString(), is(expectedPath));
assertThat(fileLocation.toOSString(), is(systemPath));
}