Search in sources :

Example 1 with STATE

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);
}
Also used : JChannel(org.jgroups.JChannel) STATE(org.jgroups.protocols.pbcast.STATE) ForkChannel(org.jgroups.fork.ForkChannel) Test(org.testng.annotations.Test)

Aggregations

JChannel (org.jgroups.JChannel)1 ForkChannel (org.jgroups.fork.ForkChannel)1 STATE (org.jgroups.protocols.pbcast.STATE)1 Test (org.testng.annotations.Test)1