@Test
void ad_item을_통해_ad_bond를_생성한다2() throws Exception {

    //given
    Shop shop = shopRepository.save(new Shop("no", "name"));
    Customer customer = customerRepository.save(new Customer("no", "name", "bizNo", "ceo", shop));
    LocalDate startDate = LocalDate.of(2020,8,11);
    LocalDate endDate = LocalDate.of(2020,8,12);
    String orderType1 = "a";
    String orderType2 = "b";
    adItemRepository.save(new AdItem(orderType1, startDate, "1", 1000L, customer));
    adItemRepository.save(new AdItem(orderType2, endDate, "2", 2000L, customer));
    //when
    List<AdBondDto> adBondDtos = queryRepository.createAdBondDto(startDate, endDate, Arrays.asList(orderType1, orderType2));
    //then
    assertThat(adBondDtos).hasSize(2);
}