GetEncoderList extends UseCase { @Override public Observable buildUseCaseObservable() { return this.dvrRepository.encoders(); } @Inject  GetEncoderList( DvrRepository dvrRepository, ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread ); @Override Observable buildUseCaseObservable();  }
@Test public void testGetEncoderListUseCaseObservableHappyCase() { getEncoderList.buildUseCaseObservable(); verify( mockDvrRepository ).encoders(); verifyNoMoreInteractions( mockDvrRepository ); verifyZeroInteractions( mockThreadExecutor ); verifyZeroInteractions( mockPostExecutionThread ); }