Skip to content

Commit

Permalink
Merge pull request #766 from rhusar/JGRP-2747-4.x
Browse files Browse the repository at this point in the history
[4.x] Fix MessageCacheTest compilation for JGRP-2747.
  • Loading branch information
belaban authored Jan 29, 2024
2 parents 1ab0c22 + 79b1369 commit 670a7f9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 670a7f9

Please sign in to comment.