diff options
| author | Paul-Christian Volkmer | 2023-05-08 11:56:35 +0200 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2023-05-08 11:59:59 +0200 |
| commit | 06b5381e885cf5cf4cb008e22e7cb2dff88f40b5 (patch) | |
| tree | 79bfb5d302a699c697d60662123dc4dd47257b24 /src/test/java/DNPM/services/TherapieplanServiceFactoryTest.java | |
| parent | 13ba0f902fc51bb74f905332287650c407c2823d (diff) | |
Verschiebe Implementierungen für Therapiepläne in eigenes Paket
Diffstat (limited to 'src/test/java/DNPM/services/TherapieplanServiceFactoryTest.java')
| -rw-r--r-- | src/test/java/DNPM/services/TherapieplanServiceFactoryTest.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/test/java/DNPM/services/TherapieplanServiceFactoryTest.java b/src/test/java/DNPM/services/TherapieplanServiceFactoryTest.java deleted file mode 100644 index 9ba543f..0000000 --- a/src/test/java/DNPM/services/TherapieplanServiceFactoryTest.java +++ /dev/null @@ -1,49 +0,0 @@ -package DNPM.services; - -import de.itc.onkostar.api.IOnkostarApi; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; -import org.mockito.Mock; -import org.mockito.junit.jupiter.MockitoExtension; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.mockito.Mockito.when; - -@ExtendWith(MockitoExtension.class) -class TherapieplanServiceFactoryTest { - - @Mock - private IOnkostarApi onkostarApi; - - @Mock - private FormService formService; - - @Mock - private SettingsService settingsService; - - private TherapieplanServiceFactory therapieplanServiceFactory; - - @BeforeEach - void setup() { - this.therapieplanServiceFactory = new TherapieplanServiceFactory(onkostarApi, settingsService, formService); - } - - @Test - void testShouldReturnDefaultTherapieplanServiceIfSettingIsFalse() { - when(settingsService.multipleMtbsInMtbEpisode()).thenReturn(false); - - var actual = this.therapieplanServiceFactory.currentUsableInstance(); - - assertThat(actual).isInstanceOf(DefaultTherapieplanService.class); - } - - @Test - void testShouldReturnMultipleMtbTherapieplanServiceIfSettingIsTrue() { - when(settingsService.multipleMtbsInMtbEpisode()).thenReturn(true); - - var actual = this.therapieplanServiceFactory.currentUsableInstance(); - - assertThat(actual).isInstanceOf(MultipleMtbTherapieplanService.class); - } -} |
