From fb91356b7777dfa5b6088bcc3a48b43924c1c0fd Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Thu, 3 Sep 2026 14:35:10 +0200 Subject: build: apply Spotless plugin (#293) --- .../oshelper/config/PluginConfigurationTest.java | 48 +++++++++++----------- 1 file changed, 23 insertions(+), 25 deletions(-) (limited to 'src/test/java/dev/dnpm/oshelper/config') 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); + } } -- cgit v1.2.3