@Test public void bind_whenInteractorAttached_shouldStartWorker() { BehaviorRelay<InteractorEvent> lifecycle = BehaviorRelay.createDefault(InteractorEvent.ACTIVE); bind(lifecycle, worker); verify(worker).onStart(Matchers.<WorkerScopeProvider>any()); }
public static WorkerUnbinder bind(Interactor<?, ?> interactor, Worker worker) { return bind(interactor.lifecycle(), worker); }
WorkerBinder { public static WorkerUnbinder bind(Interactor<?, ?> interactor, Worker worker) { return bind(interactor.lifecycle(), worker); } }
WorkerBinder { public static WorkerUnbinder bind(Interactor<?, ?> interactor, Worker worker) { return bind(interactor.lifecycle(), worker); } private  WorkerBinder(); }
WorkerBinder { public static WorkerUnbinder bind(Interactor<?, ?> interactor, Worker worker) { return bind(interactor.lifecycle(), worker); } private  WorkerBinder(); static WorkerUnbinder bind(Interactor<?, ?> interactor, Worker worker); static void bind(Interactor interactor, List<? extends Worker> workers); }
WorkerBinder { public static WorkerUnbinder bind(Interactor<?, ?> interactor, Worker worker) { return bind(interactor.lifecycle(), worker); } private  WorkerBinder(); static WorkerUnbinder bind(Interactor<?, ?> interactor, Worker worker); static void bind(Interactor interactor, List<? extends Worker> workers);  }