use of uk.ivanc.archimvvm.viewmodel.ItemRepoViewModel in project archi by ivacf.
the class ItemRepoViewModelTest method shouldGetDescription.
@Test
public void shouldGetDescription() {
Repository repository = new Repository();
repository.description = "This is the description";
ItemRepoViewModel itemRepoViewModel = new ItemRepoViewModel(application, repository);
assertEquals(repository.description, itemRepoViewModel.getDescription());
}
use of uk.ivanc.archimvvm.viewmodel.ItemRepoViewModel in project archi by ivacf.
the class ItemRepoViewModelTest method shouldGetForks.
@Test
public void shouldGetForks() {
Repository repository = new Repository();
repository.forks = 5;
String expectedString = application.getString(R.string.text_forks, repository.forks);
ItemRepoViewModel itemRepoViewModel = new ItemRepoViewModel(application, repository);
assertEquals(expectedString, itemRepoViewModel.getForks());
}
Aggregations