@Test public void getListaAlumnos() throws Exception { TestObserver<List<Alumno>> observer = mAlumnosUseCase.getListaAlumnos().test(); observer.awaitTerminalEvent(); observer.assertNoErrors(); observer.assertValueCount(1); assertEquals(observer.values().get(0).get(0).getNombre(), "Baldomero"); }
@Override public Single<List<Alumno>> getListaAlumnos() { return Single.just(Arrays.asList( new Alumno("Baldomero", "Su casa", "http: new Alumno("Germán Ginés", "Su casita", "http: new Alumno("Lorenzo", "Su casaza", "http: .delay(5, TimeUnit.SECONDS); }
AlumnosUseCaseImpl implements AlumnosUseCase { @Override public Single<List<Alumno>> getListaAlumnos() { return Single.just(Arrays.asList( new Alumno("Baldomero", "Su casa", "http: new Alumno("Germán Ginés", "Su casita", "http: new Alumno("Lorenzo", "Su casaza", "http: .delay(5, TimeUnit.SECONDS); } }
AlumnosUseCaseImpl implements AlumnosUseCase { @Override public Single<List<Alumno>> getListaAlumnos() { return Single.just(Arrays.asList( new Alumno("Baldomero", "Su casa", "http: new Alumno("Germán Ginés", "Su casita", "http: new Alumno("Lorenzo", "Su casaza", "http: .delay(5, TimeUnit.SECONDS); }  }
AlumnosUseCaseImpl implements AlumnosUseCase { @Override public Single<List<Alumno>> getListaAlumnos() { return Single.just(Arrays.asList( new Alumno("Baldomero", "Su casa", "http: new Alumno("Germán Ginés", "Su casita", "http: new Alumno("Lorenzo", "Su casaza", "http: .delay(5, TimeUnit.SECONDS); }  @Override Single<List<Alumno>> getListaAlumnos(); }
AlumnosUseCaseImpl implements AlumnosUseCase { @Override public Single<List<Alumno>> getListaAlumnos() { return Single.just(Arrays.asList( new Alumno("Baldomero", "Su casa", "http: new Alumno("Germán Ginés", "Su casita", "http: new Alumno("Lorenzo", "Su casaza", "http: .delay(5, TimeUnit.SECONDS); }  @Override Single<List<Alumno>> getListaAlumnos();  }