From 459cb2e4450833362c19194947752190d5f291e5 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Sun, 16 Nov 2025 19:40:56 +0100 Subject: feat: disable multiple MTS in care plans This is related to #213. --- .../therapieplan/TherapieplanServiceFactoryTest.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/test') diff --git a/src/test/java/dev/dnpm/oshelper/services/therapieplan/TherapieplanServiceFactoryTest.java b/src/test/java/dev/dnpm/oshelper/services/therapieplan/TherapieplanServiceFactoryTest.java index 9b526e2..9ca5517 100644 --- a/src/test/java/dev/dnpm/oshelper/services/therapieplan/TherapieplanServiceFactoryTest.java +++ b/src/test/java/dev/dnpm/oshelper/services/therapieplan/TherapieplanServiceFactoryTest.java @@ -10,7 +10,6 @@ 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 { @@ -30,20 +29,8 @@ class TherapieplanServiceFactoryTest { } @Test - void testShouldReturnDefaultTherapieplanServiceIfSettingIsFalse() { - when(settingsService.multipleMtbsInMtbEpisode()).thenReturn(false); - + void testShouldAlwaysReturnDefaultTherapieplanService() { 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); - } } -- cgit v1.2.3