@Test public void shouldGetIsa() throws Exception { ProgramProductISA expectedIsa = new ProgramProductISA(); when(programProductIsaMapper.getIsaByProgramProductId(1l)).thenReturn(expectedIsa); ProgramProductISA isa = repository.getIsaByProgramProductId(1l); verify(programProductIsaMapper).getIsaByProgramProductId(1l); assertThat(expectedIsa, is(isa)); }
public ProgramProductISA getIsaByProgramProductId(Long programProductId) { return ppiMapper.getIsaByProgramProductId(programProductId); }
FacilityProgramProductRepository { public ProgramProductISA getIsaByProgramProductId(Long programProductId) { return ppiMapper.getIsaByProgramProductId(programProductId); } }
FacilityProgramProductRepository { public ProgramProductISA getIsaByProgramProductId(Long programProductId) { return ppiMapper.getIsaByProgramProductId(programProductId); }  }
FacilityProgramProductRepository { public ProgramProductISA getIsaByProgramProductId(Long programProductId) { return ppiMapper.getIsaByProgramProductId(programProductId); }  @Transactional void insertISA(Long facilityId, ProgramProductISA isa); void updateISA(ProgramProductISA programProductISA); ProgramProductISA getIsaByProgramProductId(Long programProductId); ISA getOverriddenIsa(Long programProductId, Long facilityId); void deleteOverriddenIsa(Long programProductId, Long facilityId); @Transactional void save(FacilityProgramProduct fpp); FacilityProgramProduct getByCodes(String facilityCode, String programCode, String productCode); }
FacilityProgramProductRepository { public ProgramProductISA getIsaByProgramProductId(Long programProductId) { return ppiMapper.getIsaByProgramProductId(programProductId); }  @Transactional void insertISA(Long facilityId, ProgramProductISA isa); void updateISA(ProgramProductISA programProductISA); ProgramProductISA getIsaByProgramProductId(Long programProductId); ISA getOverriddenIsa(Long programProductId, Long facilityId); void deleteOverriddenIsa(Long programProductId, Long facilityId); @Transactional void save(FacilityProgramProduct fpp); FacilityProgramProduct getByCodes(String facilityCode, String programCode, String productCode);  }