diff options
author | Igor Fedorenko | 2012-09-01 16:23:23 +0000 |
---|---|---|
committer | Igor Fedorenko | 2012-09-01 16:23:23 +0000 |
commit | 902bb26ba78669754d0956bbb4d359cd160eb558 (patch) | |
tree | 11bfbbffa050d95d1d5996b1fe4f440aa7eb6b4b | |
parent | d670150ff291acb8f2415d55eb8e8c17c6f1d2a0 (diff) | |
download | m2e-core-902bb26ba78669754d0956bbb4d359cd160eb558.tar.gz m2e-core-902bb26ba78669754d0956bbb4d359cd160eb558.tar.xz m2e-core-902bb26ba78669754d0956bbb4d359cd160eb558.zip |
fixed tests ClasspathHelpers API and assertion description
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r-- | org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/ClasspathHelpers.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/ClasspathHelpers.java b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/ClasspathHelpers.java index a8b882b9..d3524515 100644 --- a/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/ClasspathHelpers.java +++ b/org.eclipse.m2e.tests.common/src/org/eclipse/m2e/tests/common/ClasspathHelpers.java @@ -72,14 +72,14 @@ public class ClasspathHelpers { /** * Asserts that classpath has one and only one entry with given path. */ - public static void assertClasspathEntry(IClasspathEntry[] cp, Path path) { + public static void assertClasspathEntry(IClasspathEntry[] cp, IPath path) { int count = 0; for(IClasspathEntry cpe : cp) { if(cpe.getPath().equals(path)) { count++ ; } } - Assert.assertEquals("Unexpected classpath with path " + path, 1, count); + Assert.assertEquals("Number of classpath entries with path " + path, 1, count); } /** |