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 51f5d7e0..8d50f5df 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 @@ -171,27 +171,27 @@ void setUp() { entityManager.clear(); } - // @DisplayName("데이터를 업데이트한다.") - // @Test - // void it_update_all_data() { - // // when - // applicationPersistenceCommandAdapter.updateSimply(processId, applicationToUpdate); - // entityManager.flush(); - // entityManager.clear(); - // - // // then - // ApplicationJpaEntity applicationJpaEntity = applicationRepository.findById(applicationId).get(); - // 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) - // ) - // ); - // } + @DisplayName("데이터를 업데이트한다.") + @Test + void it_update_all_data() { + // when + applicationPersistenceCommandAdapter.updateSimply(processId, applicationToUpdate); + entityManager.flush(); + entityManager.clear(); + + // then + ApplicationJpaEntity applicationJpaEntity = applicationRepository.findById(applicationId).get(); + 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) + // ) + ); + } } }