From abf1a546a59a1f4936a0f359b560dd369e4859d6 Mon Sep 17 00:00:00 2001 From: shindong96 <2006peter@naver.com> Date: Wed, 3 Apr 2024 18:40:53 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=B6=95?= =?UTF-8?q?=EC=86=8C...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...licationPersistenceCommandAdapterTest.java | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/out-adapter-persistence-jpa/src/test/java/gohigher/application/ApplicationPersistenceCommandAdapterTest.java b/out-adapter-persistence-jpa/src/test/java/gohigher/application/ApplicationPersistenceCommandAdapterTest.java index 85844127..a7c0cd05 100644 --- a/out-adapter-persistence-jpa/src/test/java/gohigher/application/ApplicationPersistenceCommandAdapterTest.java +++ b/out-adapter-persistence-jpa/src/test/java/gohigher/application/ApplicationPersistenceCommandAdapterTest.java @@ -6,7 +6,6 @@ import static org.junit.jupiter.api.Assertions.*; import java.time.LocalDateTime; -import java.util.Arrays; import java.util.List; import java.util.Optional; @@ -14,7 +13,6 @@ import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; -import org.opentest4j.MultipleFailuresError; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; @@ -183,20 +181,11 @@ void it_update_all_data() { // then ApplicationJpaEntity applicationJpaEntity = applicationRepository.findById(applicationId).get(); - try { - assertAll( - () -> assertThat(applicationJpaEntity.getCompanyName()).isEqualTo(companyNameToUpdate), - () -> assertThat(applicationJpaEntity.getPosition()).isEqualTo(potisionToUpdate), - () -> assertThat(applicationJpaEntity.getUrl()).isEqualTo(urlToUpdate), - () -> assertThat(applicationJpaEntity.getProcesses()).extracting("type", "schedule") - .contains( - tuple(firstProcess.getType(), firstProcess.getSchedule()), - tuple(secondProcess.getType(), scheduleToUpdate) - ) - ); - } catch (MultipleFailuresError e) { - System.err.println(Arrays.toString(e.getStackTrace())); - } + assertAll( + () -> assertThat(applicationJpaEntity.getCompanyName()).isEqualTo(companyNameToUpdate), + () -> assertThat(applicationJpaEntity.getPosition()).isEqualTo(potisionToUpdate), + () -> assertThat(applicationJpaEntity.getUrl()).isEqualTo(urlToUpdate) + ); } } }