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