Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_503573_Test.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_503573_Test.java18
1 files changed, 6 insertions, 12 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_503573_Test.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_503573_Test.java
index 9b16872943..8e1e9ab6e3 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_503573_Test.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/bugzilla/Bugzilla_503573_Test.java
@@ -45,16 +45,13 @@ public class Bugzilla_503573_Test extends AbstractCDOTest
WithCustomType controlObject = controlView.getObject(object);
assertEquals(new CustomType(1234), controlObject.getValue());
- TestAdapter adapter = new TestAdapter();
- controlObject.eAdapters().add(adapter);
+ TestAdapter adapter = new TestAdapter(controlObject);
object.setValue(new CustomType(5678));
commitAndSync(transaction, controlView);
- Notification[] notifications = adapter.getNotifications();
- assertEquals(1, notifications.length);
-
- Object oldValue = notifications[0].getOldValue();
+ Notification notification = adapter.assertNotifications(1)[0];
+ Object oldValue = notification.getOldValue();
assertEquals(new CustomType(1234), oldValue);
}
@@ -78,16 +75,13 @@ public class Bugzilla_503573_Test extends AbstractCDOTest
GenListOfIntArray controlObject = controlView.getObject(object);
assertEquals(3, controlObject.getElements().size());
- TestAdapter adapter = new TestAdapter();
- controlObject.eAdapters().add(adapter);
+ TestAdapter adapter = new TestAdapter(controlObject);
object.getElements().remove(1);
commitAndSync(transaction, controlView);
- Notification[] notifications = adapter.getNotifications();
- assertEquals(1, notifications.length);
-
- Object oldValue = notifications[0].getOldValue();
+ Notification notification = adapter.assertNotifications(1)[0];
+ Object oldValue = notification.getOldValue();
assertEquals("Old Name", oldValue);
}
}

Back to the top