diff options
| author | Paul-Christian Volkmer | 2025-11-16 19:40:56 +0100 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2025-11-17 12:51:19 +0100 |
| commit | 459cb2e4450833362c19194947752190d5f291e5 (patch) | |
| tree | 679c410964da26e0d6f4db09a4e6ce2cdcb3792d /src/test/java | |
| parent | b71fa5823a1a71808f0ff546eb86845630948c5a (diff) | |
feat: disable multiple MTS in care plans
This is related to #213.
Diffstat (limited to 'src/test/java')
| -rw-r--r-- | src/test/java/dev/dnpm/oshelper/services/therapieplan/TherapieplanServiceFactoryTest.java | 15 |
1 files changed, 1 insertions, 14 deletions
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); - } } |
