From 79b13697c8b1f8b291498d7cf6c70d5b8c681ba9 Mon Sep 17 00:00:00 2001 From: Radoslav Husar Date: Fri, 26 Jan 2024 11:27:11 +0100 Subject: [PATCH] Fix MessageCacheTest compilation for JGRP-2747. --- .../junit-functional/org/jgroups/tests/MessageCacheTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;