2122232425262728293031
} } Connection joined; joined = Layers.join(); joined.disconnect(); joined.disconnect(); TestConn c1 = new TestConn(); joined = Layers.join(c1, joined); joined.disconnect();
2223242526272829303132
} Connection joined; joined = Layers.join(); joined.disconnect(); joined.disconnect(); TestConn c1 = new TestConn(); joined = Layers.join(c1, joined); joined.disconnect(); Assert.assertEquals(c1.disconnects, 1);
2627282930313233343536
joined.disconnect(); joined.disconnect(); TestConn c1 = new TestConn(); joined = Layers.join(c1, joined); joined.disconnect(); Assert.assertEquals(c1.disconnects, 1); joined.disconnect(); Assert.assertEquals(c1.disconnects, 1); } }
282930313233343536
TestConn c1 = new TestConn(); joined = Layers.join(c1, joined); joined.disconnect(); Assert.assertEquals(c1.disconnects, 1); joined.disconnect(); Assert.assertEquals(c1.disconnects, 1); } }