use of org.jgroups.View in project JGroups by belaban.
the class ViewTest method testDiff2.
public void testDiff2() {
View one = View.create(a, 1, a, b, c);
View two = View.create(a, 2, a, b, c, d, e);
Address[][] diff = View.diff(one, two);
System.out.println("diffs: " + printDiff(diff));
Address[] joined = diff[0], left = diff[1];
assert joined.length == 2;
assert joined[0].equals(d) && joined[1].equals(e);
assert left.length == 0;
}
Aggregations