summaryrefslogtreecommitdiff
path: root/src/test/java/dev/dnpm/oshelper/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/dev/dnpm/oshelper/config')
-rw-r--r--src/test/java/dev/dnpm/oshelper/config/PluginConfigurationTest.java48
1 files changed, 23 insertions, 25 deletions
diff --git a/src/test/java/dev/dnpm/oshelper/config/PluginConfigurationTest.java b/src/test/java/dev/dnpm/oshelper/config/PluginConfigurationTest.java
index 6b80968..42583ca 100644
--- a/src/test/java/dev/dnpm/oshelper/config/PluginConfigurationTest.java
+++ b/src/test/java/dev/dnpm/oshelper/config/PluginConfigurationTest.java
@@ -19,47 +19,45 @@
package dev.dnpm.oshelper.config;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import de.itc.onkostar.api.IOnkostarApi;
import dev.dnpm.oshelper.services.FormService;
import dev.dnpm.oshelper.services.SettingsService;
-import dev.dnpm.oshelper.services.therapieplan.TherapieplanServiceFactory;
import dev.dnpm.oshelper.services.consent.ConsentManagerServiceFactory;
-import de.itc.onkostar.api.IOnkostarApi;
+import dev.dnpm.oshelper.services.therapieplan.TherapieplanServiceFactory;
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;
-
@ExtendWith(MockitoExtension.class)
class PluginConfigurationTest {
- @Mock
- private IOnkostarApi onkostarApi;
+ @Mock private IOnkostarApi onkostarApi;
- @Mock
- private SettingsService settingsService;
+ @Mock private SettingsService settingsService;
- @Mock
- private FormService formService;
+ @Mock private FormService formService;
- private PluginConfiguration configuration;
+ private PluginConfiguration configuration;
- @BeforeEach
- void setup() {
- this.configuration = new PluginConfiguration();
- }
+ @BeforeEach
+ void setup() {
+ this.configuration = new PluginConfiguration();
+ }
- @Test
- void testShouldReturnConsentManagerServiceFactory() {
- var actual = this.configuration.consentManagerServiceFactory(onkostarApi);
- assertThat(actual).isInstanceOf(ConsentManagerServiceFactory.class);
- }
+ @Test
+ void testShouldReturnConsentManagerServiceFactory() {
+ var actual = this.configuration.consentManagerServiceFactory(onkostarApi);
+ assertThat(actual).isInstanceOf(ConsentManagerServiceFactory.class);
+ }
- @Test
- void testShouldReturnTherapieplanServiceFactory() {
- var actual = this.configuration.therapieplanServiceFactory(onkostarApi, settingsService, formService);
- assertThat(actual).isInstanceOf(TherapieplanServiceFactory.class);
- }
+ @Test
+ void testShouldReturnTherapieplanServiceFactory() {
+ var actual =
+ this.configuration.therapieplanServiceFactory(onkostarApi, settingsService, formService);
+ assertThat(actual).isInstanceOf(TherapieplanServiceFactory.class);
+ }
}