@Test public void shouldGetMasterRegimenColumns() throws Exception { List<RegimenColumn> regimenColumns = new ArrayList<>(); when(mapper.getMasterRegimenColumns()).thenReturn(regimenColumns); List<RegimenColumn> regimenColumnsFromDb = repository.getMasterRegimenColumnsByProgramId(); verify(mapper).getMasterRegimenColumns(); assertThat(regimenColumnsFromDb, is(regimenColumns)); }
public List<RegimenColumn> getMasterRegimenColumnsByProgramId() { return mapper.getMasterRegimenColumns(); }
RegimenColumnRepository { public List<RegimenColumn> getMasterRegimenColumnsByProgramId() { return mapper.getMasterRegimenColumns(); } }
RegimenColumnRepository { public List<RegimenColumn> getMasterRegimenColumnsByProgramId() { return mapper.getMasterRegimenColumns(); }  }
RegimenColumnRepository { public List<RegimenColumn> getMasterRegimenColumnsByProgramId() { return mapper.getMasterRegimenColumns(); }  List<RegimenColumn> getRegimenColumnsByProgramId(Long programId); List<RegimenColumn> getMasterRegimenColumnsByProgramId(); void save(RegimenTemplate regimenTemplate, Long userId); }
RegimenColumnRepository { public List<RegimenColumn> getMasterRegimenColumnsByProgramId() { return mapper.getMasterRegimenColumns(); }  List<RegimenColumn> getRegimenColumnsByProgramId(Long programId); List<RegimenColumn> getMasterRegimenColumnsByProgramId(); void save(RegimenTemplate regimenTemplate, Long userId);  }