@Test public void firstActivationStartWebWorker() throws Exception { verifierWebWorkerConnection.activate(); verify(receiver).activate(); verify(receiver).setUp(any()); verify(poster).setUp(any()); verify(poster).post(any(Initialize.class)); }
@Override public void activate() { receiver.activate(); if (worker == null) { startWorker(); poster.post(initialize); } else { poster.post(new RequestStatus()); } }
VerifierWebWorkerConnectionImpl implements VerifierWebWorkerConnection { @Override public void activate() { receiver.activate(); if (worker == null) { startWorker(); poster.post(initialize); } else { poster.post(new RequestStatus()); } } }
VerifierWebWorkerConnectionImpl implements VerifierWebWorkerConnection { @Override public void activate() { receiver.activate(); if (worker == null) { startWorker(); poster.post(initialize); } else { poster.post(new RequestStatus()); } } VerifierWebWorkerConnectionImpl(final Initialize initialize,
                                           final String pathToVerifier,
                                           final Poster poster,
                                           final Receiver receiver); }
VerifierWebWorkerConnectionImpl implements VerifierWebWorkerConnection { @Override public void activate() { receiver.activate(); if (worker == null) { startWorker(); poster.post(initialize); } else { poster.post(new RequestStatus()); } } VerifierWebWorkerConnectionImpl(final Initialize initialize,
                                           final String pathToVerifier,
                                           final Poster poster,
                                           final Receiver receiver); @Override void activate(); @Override void terminate(); }
VerifierWebWorkerConnectionImpl implements VerifierWebWorkerConnection { @Override public void activate() { receiver.activate(); if (worker == null) { startWorker(); poster.post(initialize); } else { poster.post(new RequestStatus()); } } VerifierWebWorkerConnectionImpl(final Initialize initialize,
                                           final String pathToVerifier,
                                           final Poster poster,
                                           final Receiver receiver); @Override void activate(); @Override void terminate();  }