@Test public void shouldUseGetAllInMapper() { repo.getAll(); verify(mapper).getAll(); }
public List<RegimenCategory> getAll() { return mapper.getAll(); }
RegimenCategoryRepository { public List<RegimenCategory> getAll() { return mapper.getAll(); } }
RegimenCategoryRepository { public List<RegimenCategory> getAll() { return mapper.getAll(); } @Autowired  RegimenCategoryRepository(RegimenCategoryMapper regimenCategoryMapper); }
RegimenCategoryRepository { public List<RegimenCategory> getAll() { return mapper.getAll(); } @Autowired  RegimenCategoryRepository(RegimenCategoryMapper regimenCategoryMapper); List<RegimenCategory> getAll(); RegimenCategory getByCode(String code); void save(RegimenCategory regimenCategory); }
RegimenCategoryRepository { public List<RegimenCategory> getAll() { return mapper.getAll(); } @Autowired  RegimenCategoryRepository(RegimenCategoryMapper regimenCategoryMapper); List<RegimenCategory> getAll(); RegimenCategory getByCode(String code); void save(RegimenCategory regimenCategory);  }