From 616ff861988db734759c561309610d0d4c1cd46f Mon Sep 17 00:00:00 2001 From: rubn Date: Fri, 22 Nov 2024 15:36:29 +0100 Subject: [PATCH] :construction: #70 updated test --- .../impl/WizardEspServiceTest.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/test/java/com/esp/espflow/service/respository/impl/WizardEspServiceTest.java b/src/test/java/com/esp/espflow/service/respository/impl/WizardEspServiceTest.java index b22934e..bdba419 100644 --- a/src/test/java/com/esp/espflow/service/respository/impl/WizardEspServiceTest.java +++ b/src/test/java/com/esp/espflow/service/respository/impl/WizardEspServiceTest.java @@ -78,26 +78,6 @@ void updateEntityWizardReadFlash(WizardEspDto wizardReadFlashViewDto, WizardEspD verifyNoMoreInteractions(repository); } - @ParameterizedTest - @ArgumentsSource(WizardUpdateEspServiceProvider.class) - @DisplayName("") - void updateTwoEntities(WizardEspDto wizardReadFlashViewDto, WizardEspDto updatedDto, - WizardEspEntity updatedEntity) { - - WizardEspEntity toSave = WizardEspMapper.INSTANCE.dtoToEntity(updatedDto); - WizardEspEntity findById = WizardEspMapper.INSTANCE.dtoToEntity(wizardReadFlashViewDto); - - when(repository.findById(findById.getId())).thenReturn(Optional.of(updatedEntity)); - when(repository.save(toSave)).thenReturn(updatedEntity); - - assertThatCode(() -> wizardEspService.save(updatedDto)).doesNotThrowAnyException(); - - verify(repository, times(1)).findById(findById.getId()); - verify(repository, times(1)).save(toSave); - verifyNoMoreInteractions(repository); - - } - @ParameterizedTest @ArgumentsSource(WizardEspServiceProvider.class) @DisplayName("id is empty, the new entity is saved")