aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ross2011-09-27 16:51:51 (EDT)
committerJohn Ross2011-09-27 17:46:53 (EDT)
commit1891a5648aad319ad8e7cd17aec13e78ec3b3b72 (patch)
tree361c224396d0a5bf011cc9733ce051775255ed79
parentf25d4a73d7685b628db48f3811ec2980de3b142e (diff)
downloadrt.equinox.bundles-1891a5648aad319ad8e7cd17aec13e78ec3b3b72.zip
rt.equinox.bundles-1891a5648aad319ad8e7cd17aec13e78ec3b3b72.tar.gz
rt.equinox.bundles-1891a5648aad319ad8e7cd17aec13e78ec3b3b72.tar.bz2
Bug 358969: New test to ensure properties files can be located and used in resource bundles.
-rw-r--r--bundles/org.eclipse.equinox.compendium.tests/META-INF/MANIFEST.MF1
-rw-r--r--bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/AllTests.java1
-rw-r--r--bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/Bug358969Test.java22
3 files changed, 24 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.compendium.tests/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.compendium.tests/META-INF/MANIFEST.MF
index dae6e24..f0557bf 100644
--- a/bundles/org.eclipse.equinox.compendium.tests/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.compendium.tests/META-INF/MANIFEST.MF
@@ -8,6 +8,7 @@ Require-Bundle: org.eclipse.core.runtime
Eclipse-LazyStart: true
Import-Package: junit.framework;version="3.8.2",
org.eclipse.equinox.metatype;version="1.2.0",
+ org.eclipse.equinox.metatype.impl;version="1.2.0",
org.eclipse.osgi.tests.bundles,
org.osgi.framework;version="1.3.0",
org.osgi.service.event;version="1.1.0",
diff --git a/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/AllTests.java b/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/AllTests.java
index f61467f..3cb601a 100644
--- a/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/AllTests.java
+++ b/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/AllTests.java
@@ -22,6 +22,7 @@ public class AllTests {
suite.addTestSuite(BugTests.class);
suite.addTestSuite(SameOcdPidFactoryPidTest.class);
suite.addTestSuite(ExtendableTest.class);
+ suite.addTestSuite(Bug358969Test.class);
return suite;
}
}
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
new file mode 100644
index 0000000..1097ddd
--- /dev/null
+++ b/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/Bug358969Test.java
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2011 IBM Corporation 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.equinox.metatype.tests;
+
+import org.eclipse.equinox.metatype.impl.LogTrackerMsg;
+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$
+ }
+}