@Test void getTpps() { when(tppInfoRepository.findAll()).thenReturn(Collections.singletonList(new TppInfoEntity())); when(tppInfoObaMapper.toTppInfoTOs(any())).thenReturn(Collections.singletonList(new TppInfoTO())); List<TppInfoTO> result = tppInfoCmsService.getTpps(); assertFalse(result.isEmpty()); }
@Override @Transactional public List<TppInfoTO> getTpps() { List<TppInfoEntity> tpps = IterableUtils.toList(tppInfoRepository.findAll()); return tppInfoObaMapper.toTppInfoTOs(tpps); }
TppInfoCmsServiceImpl implements TppInfoCmsService { @Override @Transactional public List<TppInfoTO> getTpps() { List<TppInfoEntity> tpps = IterableUtils.toList(tppInfoRepository.findAll()); return tppInfoObaMapper.toTppInfoTOs(tpps); } }
TppInfoCmsServiceImpl implements TppInfoCmsService { @Override @Transactional public List<TppInfoTO> getTpps() { List<TppInfoEntity> tpps = IterableUtils.toList(tppInfoRepository.findAll()); return tppInfoObaMapper.toTppInfoTOs(tpps); }  }
TppInfoCmsServiceImpl implements TppInfoCmsService { @Override @Transactional public List<TppInfoTO> getTpps() { List<TppInfoEntity> tpps = IterableUtils.toList(tppInfoRepository.findAll()); return tppInfoObaMapper.toTppInfoTOs(tpps); }  @Override @Transactional List<TppInfoTO> getTpps(); }
TppInfoCmsServiceImpl implements TppInfoCmsService { @Override @Transactional public List<TppInfoTO> getTpps() { List<TppInfoEntity> tpps = IterableUtils.toList(tppInfoRepository.findAll()); return tppInfoObaMapper.toTppInfoTOs(tpps); }  @Override @Transactional List<TppInfoTO> getTpps();  }