diff --git a/tests/junit-functional/org/jgroups/tests/MessageCacheTest.java b/tests/junit-functional/org/jgroups/tests/MessageCacheTest.java index e5357c5a2a..7c4dc1e841 100644 --- a/tests/junit-functional/org/jgroups/tests/MessageCacheTest.java +++ b/tests/junit-functional/org/jgroups/tests/MessageCacheTest.java @@ -3,7 +3,6 @@ import org.jgroups.Address; import org.jgroups.Global; import org.jgroups.Message; -import org.jgroups.ObjectMessage; import org.jgroups.util.MessageCache; import org.jgroups.util.Util; import org.testng.annotations.BeforeMethod; @@ -32,8 +31,8 @@ public void testCreation() { public void testAdd() { for(int i=1; i <= 5; i++) { - cache.add(A, new ObjectMessage(A, i)); - cache.add(B, new ObjectMessage(B, i+10)); + cache.add(A, new Message(A, i)); + cache.add(B, new Message(B, i+10)); } assert !cache.isEmpty(); assert cache.size() == 10;