@Test public void testConnect() throws Throwable { LoopbackChannel loopbackChannel = new LoopbackChannel(); loopbackChannel.connect(); assertEquals(1, loopbackChannel.getCounters()[0], "loopbackChannel.getCounters()[0]"); assertEquals(3, loopbackChannel.getCounters().length, "loopbackChannel.getCounters().length"); assertTrue(loopbackChannel.usable, "loopbackChannel.usable"); }
public void connect () { cnt[CONNECT]++; usable = true; setChanged(); notifyObservers(); }
LoopbackChannel extends FilteredBase implements LogSource { public void connect () { cnt[CONNECT]++; usable = true; setChanged(); notifyObservers(); } }
LoopbackChannel extends FilteredBase implements LogSource { public void connect () { cnt[CONNECT]++; usable = true; setChanged(); notifyObservers(); } LoopbackChannel(); }
LoopbackChannel extends FilteredBase implements LogSource { public void connect () { cnt[CONNECT]++; usable = true; setChanged(); notifyObservers(); } LoopbackChannel(); void setPackager(ISOPackager packager); void connect(); void disconnect(); void reconnect(); boolean isConnected(); void send(ISOMsg m); void send(byte[] b); ISOMsg receive(); void setUsable(boolean usable); int[] getCounters(); void setName(String name); String getName(); ISOPackager getPackager(); void resetCounters(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); }
LoopbackChannel extends FilteredBase implements LogSource { public void connect () { cnt[CONNECT]++; usable = true; setChanged(); notifyObservers(); } LoopbackChannel(); void setPackager(ISOPackager packager); void connect(); void disconnect(); void reconnect(); boolean isConnected(); void send(ISOMsg m); void send(byte[] b); ISOMsg receive(); void setUsable(boolean usable); int[] getCounters(); void setName(String name); String getName(); ISOPackager getPackager(); void resetCounters(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger();  }