aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ross2013-08-13 09:53:54 (EDT)
committerJohn Ross2013-08-13 09:53:54 (EDT)
commitb518f5c6f4c7d0a8fcfc6f3f0ced201b0eca3016 (patch)
treecb7d0ea455f117dcce9d7fa919ca3a74ab1a809f
parente84af5afdba10d6b489a88d7c40cd20761e0c0ae (diff)
downloadrt.equinox.bundles-b518f5c6f4c7d0a8fcfc6f3f0ced201b0eca3016.zip
rt.equinox.bundles-b518f5c6f4c7d0a8fcfc6f3f0ced201b0eca3016.tar.gz
rt.equinox.bundles-b518f5c6f4c7d0a8fcfc6f3f0ced201b0eca3016.tar.bz2
[Bug 414943] Add messages to assertions.
-rw-r--r--bundles/org.eclipse.equinox.ds.tests/src/org/eclipse/equinox/ds/tests/tbc/DSTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.ds.tests/src/org/eclipse/equinox/ds/tests/tbc/DSTest.java b/bundles/org.eclipse.equinox.ds.tests/src/org/eclipse/equinox/ds/tests/tbc/DSTest.java
index 819f0e7..6499e75 100644
--- a/bundles/org.eclipse.equinox.ds.tests/src/org/eclipse/equinox/ds/tests/tbc/DSTest.java
+++ b/bundles/org.eclipse.equinox.ds.tests/src/org/eclipse/equinox/ds/tests/tbc/DSTest.java
@@ -3088,10 +3088,10 @@ public class DSTest extends TestCase {
// The component service should be Component1.
BundleContext context = getContext();
ServiceReference<?> ref = context.getServiceReference(serviceName);
- assertNotNull(ref);
+ assertNotNull("Component service not registered on start", ref);
Object service = context.getService(ref);
Class clazz = service.getClass();
- assertEquals("org.eclipse.equinox.ds.tests.tb26.impl.Component1", clazz.getName());
+ assertEquals("Wrong Component service", "org.eclipse.equinox.ds.tests.tb26.impl.Component1", clazz.getName());
// Update component.xml with component2.xml.
clazz.getMethod("update", (Class[])null).invoke(service, (Object[])null);
@@ -3103,10 +3103,10 @@ public class DSTest extends TestCase {
// The component service should now be Component2.
ref = context.getServiceReference(serviceName);
- assertNotNull(ref);
+ assertNotNull("Component service not registered on restart", ref);
service = context.getService(ref);
clazz = service.getClass();
- assertEquals("org.eclipse.equinox.ds.tests.tb26.impl.Component2", clazz.getName());
+ assertEquals("Wrong component service", "org.eclipse.equinox.ds.tests.tb26.impl.Component2", clazz.getName());
}
finally {
uninstallBundle(b);