@Test public void getCourses() { List<CourseEntity> courseEntities = viewModel.getCourses(); assertNotNull(courseEntities); assertEquals(5, courseEntities.size()); }
public List<CourseEntity> getCourses() { return academyRepository.getAllCourses(); }
AcademyViewModel extends ViewModel { public List<CourseEntity> getCourses() { return academyRepository.getAllCourses(); } }
AcademyViewModel extends ViewModel { public List<CourseEntity> getCourses() { return academyRepository.getAllCourses(); } AcademyViewModel(AcademyRepository mAcademyRepository); }
AcademyViewModel extends ViewModel { public List<CourseEntity> getCourses() { return academyRepository.getAllCourses(); } AcademyViewModel(AcademyRepository mAcademyRepository); List<CourseEntity> getCourses(); }
AcademyViewModel extends ViewModel { public List<CourseEntity> getCourses() { return academyRepository.getAllCourses(); } AcademyViewModel(AcademyRepository mAcademyRepository); List<CourseEntity> getCourses();  }