aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ross2011-09-27 17:48:04 (EDT)
committerJohn Ross2011-09-27 17:48:04 (EDT)
commit9f9628013ad7e27a94c25aebba0710f591b3d728 (patch)
tree5b8b949005784b7a9a36a2fb28ec7639e9b19ab6
parent1891a5648aad319ad8e7cd17aec13e78ec3b3b72 (diff)
downloadrt.equinox.bundles-9f9628013ad7e27a94c25aebba0710f591b3d728.zip
rt.equinox.bundles-9f9628013ad7e27a94c25aebba0710f591b3d728.tar.gz
rt.equinox.bundles-9f9628013ad7e27a94c25aebba0710f591b3d728.tar.bz2
Bug 358969: Small change to avoid repeating constant.
-rw-r--r--bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/Bug358969Test.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/Bug358969Test.java b/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/Bug358969Test.java
index 1097ddd..fe9af93 100644
--- a/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/Bug358969Test.java
+++ b/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/Bug358969Test.java
@@ -16,7 +16,8 @@ import org.eclipse.equinox.metatype.impl.MetaTypeMsg;
public class Bug358969Test extends AbstractTest {
public void test1() {
String message = "NLS properties file not configured correctly"; //$NON-NLS-1$
- assertFalse(message, MetaTypeMsg.SERVICE_DESCRIPTION.startsWith("NLS missing message:")); //$NON-NLS-1$
- assertFalse(message, LogTrackerMsg.Debug.startsWith("NLS missing message:")); //$NON-NLS-1$
+ String prefix = "NLS missing message:"; //$NON-NLS-1$
+ assertFalse(message, MetaTypeMsg.SERVICE_DESCRIPTION.startsWith(prefix));
+ assertFalse(message, LogTrackerMsg.Debug.startsWith(prefix));
}
}