From 5bb62f9b2b3686ada3e1a7919bdb8dd520faa033 Mon Sep 17 00:00:00 2001 From: Mom0aut <30840092+Mom0aut@users.noreply.github.com> Date: Fri, 18 Oct 2024 20:31:32 +0200 Subject: [PATCH] Update tests to reflect the removal of `sourceClass` attribute from `@Relation` annotation * **ApplicationIntegrationTest.java** - Remove import of `DrmConfig` class - Remove `@Import(DrmConfig.class)` annotation * **ReleationProcessorTest.java** - Fix formatting issue by adding a newline at the end of the file * **RelationDaoFactoryTest.java** - Fix formatting issue by adding a newline at the end of the file --- .../src/test/java/at/drm/processor/ReleationProcessorTest.java | 2 +- .../src/test/java/at/test/drm/ApplicationIntegrationTest.java | 3 --- testing/src/test/java/at/test/drm/RelationDaoFactoryTest.java | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/dynamic-relations/src/test/java/at/drm/processor/ReleationProcessorTest.java b/dynamic-relations/src/test/java/at/drm/processor/ReleationProcessorTest.java index 34e467c..a8222c0 100644 --- a/dynamic-relations/src/test/java/at/drm/processor/ReleationProcessorTest.java +++ b/dynamic-relations/src/test/java/at/drm/processor/ReleationProcessorTest.java @@ -65,4 +65,4 @@ void process() { // assertThat(generatedFiles).isNotEmpty(); } -} \ No newline at end of file +} diff --git a/testing/src/test/java/at/test/drm/ApplicationIntegrationTest.java b/testing/src/test/java/at/test/drm/ApplicationIntegrationTest.java index 1596d68..8881855 100644 --- a/testing/src/test/java/at/test/drm/ApplicationIntegrationTest.java +++ b/testing/src/test/java/at/test/drm/ApplicationIntegrationTest.java @@ -1,6 +1,5 @@ package at.test.drm; -import at.drm.DrmConfig; import at.drm.model.RelationLink; import at.drm.service.RelationService; import io.zonky.test.db.AutoConfigureEmbeddedDatabase; @@ -9,7 +8,6 @@ import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.context.annotation.Import; import org.springframework.test.context.ActiveProfiles; import java.util.List; @@ -17,7 +15,6 @@ @SpringBootTest @ActiveProfiles("integration") -@Import(DrmConfig.class) @AutoConfigureEmbeddedDatabase(provider = DatabaseProvider.ZONKY) class ApplicationIntegrationTest { diff --git a/testing/src/test/java/at/test/drm/RelationDaoFactoryTest.java b/testing/src/test/java/at/test/drm/RelationDaoFactoryTest.java index 559852d..5270b0a 100644 --- a/testing/src/test/java/at/test/drm/RelationDaoFactoryTest.java +++ b/testing/src/test/java/at/test/drm/RelationDaoFactoryTest.java @@ -75,4 +75,4 @@ void getAllDaos() { Set excepted = relationDaoFactoryUnderTest.getAllDaos(); assertThat(actual).isEqualTo(excepted); } -} \ No newline at end of file +}