Examples of DiscoWorkerListener


Examples of org.discoproject.worker.protocol.decoder.DiscoWorkerListener

    assertEquals(expected, new WorkerAnnounceEncoder().set("1.0", 25094).toString());
  }

  @Test
  public void testWorkerAnnounce() throws IOException {
    final DiscoWorkerListener listener = mock(DiscoWorkerListener.class);
    final InOrder inOrder = inOrder(listener);

    final Pipe pipeFromDisco = Pipe.open();
    final DiscoIOChannel ioChannel = new DiscoIOChannel(pipeFromDisco.source(), new NullByteChannel(),
            new DiscoWorkerDecoder().setListener(listener));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.