use of org.jgroups.protocols.pbcast.STATE in project JGroups by belaban.
the class ForkChannelTest method testCreateForkIfAbsent.
@Test
public void testCreateForkIfAbsent() throws Exception {
JChannel c = new JChannel(Util.getTestStack(new STATE())).name("C");
ForkChannel fc = new ForkChannel(c, "hijack-stack", "lead-hijacker", true, ProtocolStack.Position.ABOVE, FRAG2.class);
assert fc.isOpen() && !fc.isConnected() && !fc.isClosed() : "state=" + fc.getState();
Util.close(fc, c);
}
Aggregations