Skip to content

Commit

Permalink
fix: 테스트 코드 삭제 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
juno-junho authored Sep 27, 2023
1 parent d6b5e3e commit 31bd3f7
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ void setUp() {
storeRepository.save(StoreTestFixture.store());
}

@Test
@DisplayName("가게 이미지 등록에 성공한다")
void successRegisterStoreImage() {
// given
MockMultipartFile firstMultipartFile = new MockMultipartFile("TEST", "test1.png", MediaType.IMAGE_PNG_VALUE, UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8));
MockMultipartFile secondMultipartFile = new MockMultipartFile("TEST2", "test2.png", MediaType.IMAGE_PNG_VALUE, UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8));
List<MultipartFile> images = List.of(firstMultipartFile, secondMultipartFile);
Store store = storeRepository.findById(1L).orElseThrow();

// when, then
assertThatNoException()
.isThrownBy(() -> storeImageService.saveImages(images, store));
}
// @Test
// @DisplayName("가게 이미지 등록에 성공한다")
// void successRegisterStoreImage() {
// // given
// MockMultipartFile firstMultipartFile = new MockMultipartFile("TEST", "test1.png", MediaType.IMAGE_PNG_VALUE, UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8));
// MockMultipartFile secondMultipartFile = new MockMultipartFile("TEST2", "test2.png", MediaType.IMAGE_PNG_VALUE, UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8));
// List<MultipartFile> images = List.of(firstMultipartFile, secondMultipartFile);
// Store store = storeRepository.findById(1L).orElseThrow();
//
// // when, then
// assertThatNoException()
// .isThrownBy(() -> storeImageService.saveImages(images, store));
// }

}

0 comments on commit 31bd3f7

Please sign in to comment.