@Test void testList() { List<FreeIpa> freeIpaList = createSFreeIpaList(); List<ListFreeIpaResponse> responseList = createListFreeIpaResponseList(); when(freeIpaService.getAllByAccountId(ACCOUNT_ID)).thenReturn(freeIpaList); when(freeIpaToListFreeIpaResponseConverter.convertList(freeIpaList)).thenReturn(responseList); List<ListFreeIpaResponse> actual = underTest.list(ACCOUNT_ID); Assertions.assertEquals(responseList, actual); verify(freeIpaService).getAllByAccountId(ACCOUNT_ID); verify(freeIpaToListFreeIpaResponseConverter).convertList(freeIpaList); }
public List<ListFreeIpaResponse> list(String accountId) { List<FreeIpa> stackList = freeIpaService.getAllByAccountId(accountId); return freeIpaToListFreeIpaResponseConverter.convertList(stackList); }
FreeIpaListService { public List<ListFreeIpaResponse> list(String accountId) { List<FreeIpa> stackList = freeIpaService.getAllByAccountId(accountId); return freeIpaToListFreeIpaResponseConverter.convertList(stackList); } }
FreeIpaListService { public List<ListFreeIpaResponse> list(String accountId) { List<FreeIpa> stackList = freeIpaService.getAllByAccountId(accountId); return freeIpaToListFreeIpaResponseConverter.convertList(stackList); }  }
FreeIpaListService { public List<ListFreeIpaResponse> list(String accountId) { List<FreeIpa> stackList = freeIpaService.getAllByAccountId(accountId); return freeIpaToListFreeIpaResponseConverter.convertList(stackList); }  List<ListFreeIpaResponse> list(String accountId); }
FreeIpaListService { public List<ListFreeIpaResponse> list(String accountId) { List<FreeIpa> stackList = freeIpaService.getAllByAccountId(accountId); return freeIpaToListFreeIpaResponseConverter.convertList(stackList); }  List<ListFreeIpaResponse> list(String accountId);  }