From 771d2b931cb0e9b7135dab76e0368a45bbe2da09 Mon Sep 17 00:00:00 2001 From: Sita Date: Sun, 28 Jul 2024 16:12:13 +0200 Subject: [PATCH] #86: Move tests --- .../inrepository/{ => image}/ImageRepositoryTest.java | 10 ++-------- .../ImageServiceIdsTest.java} | 6 +++--- 2 files changed, 5 insertions(+), 11 deletions(-) rename core/src/test/java/place/sita/labelle/core/repository/inrepository/{ => image}/ImageRepositoryTest.java (98%) rename core/src/test/java/place/sita/labelle/core/repository/inrepository/{InRepositoryTest.java => image/ImageServiceIdsTest.java} (96%) diff --git a/core/src/test/java/place/sita/labelle/core/repository/inrepository/ImageRepositoryTest.java b/core/src/test/java/place/sita/labelle/core/repository/inrepository/image/ImageRepositoryTest.java similarity index 98% rename from core/src/test/java/place/sita/labelle/core/repository/inrepository/ImageRepositoryTest.java rename to core/src/test/java/place/sita/labelle/core/repository/inrepository/image/ImageRepositoryTest.java index 188a2d3..b0bb603 100644 --- a/core/src/test/java/place/sita/labelle/core/repository/inrepository/ImageRepositoryTest.java +++ b/core/src/test/java/place/sita/labelle/core/repository/inrepository/image/ImageRepositoryTest.java @@ -1,4 +1,4 @@ -package place.sita.labelle.core.repository.inrepository; +package place.sita.labelle.core.repository.inrepository.image; import org.jooq.DSLContext; import org.junit.jupiter.api.AfterEach; @@ -7,9 +7,7 @@ import place.sita.labelle.core.TestContainersTest; import place.sita.labelle.core.cache.CacheRegistry; import place.sita.labelle.core.images.imagelocator.ImageLocatorService; -import place.sita.labelle.core.repository.inrepository.delta.DeltaService; -import place.sita.labelle.core.repository.inrepository.image.ImageRepository; -import place.sita.labelle.core.repository.inrepository.image.ImageResponse; +import place.sita.labelle.core.repository.inrepository.InRepositoryService; import place.sita.labelle.core.repository.inrepository.tags.Tag; import place.sita.labelle.core.repository.repositories.Repository; import place.sita.labelle.core.repository.repositories.RepositoryService; @@ -30,7 +28,6 @@ public class ImageRepositoryTest extends TestContainersTest { @Autowired private ImageRepository imageRepository; - @Autowired private DSLContext context; @@ -43,9 +40,6 @@ public class ImageRepositoryTest extends TestContainersTest { @Autowired private ImageLocatorService imageLocatorService; - @Autowired - private DeltaService deltaService; - @Autowired private CacheRegistry cacheRegistry; diff --git a/core/src/test/java/place/sita/labelle/core/repository/inrepository/InRepositoryTest.java b/core/src/test/java/place/sita/labelle/core/repository/inrepository/image/ImageServiceIdsTest.java similarity index 96% rename from core/src/test/java/place/sita/labelle/core/repository/inrepository/InRepositoryTest.java rename to core/src/test/java/place/sita/labelle/core/repository/inrepository/image/ImageServiceIdsTest.java index 50f28f4..1d4a339 100644 --- a/core/src/test/java/place/sita/labelle/core/repository/inrepository/InRepositoryTest.java +++ b/core/src/test/java/place/sita/labelle/core/repository/inrepository/image/ImageServiceIdsTest.java @@ -1,4 +1,4 @@ -package place.sita.labelle.core.repository.inrepository; +package place.sita.labelle.core.repository.inrepository.image; import org.jooq.DSLContext; import org.junit.jupiter.api.AfterEach; @@ -6,7 +6,7 @@ import org.springframework.beans.factory.annotation.Autowired; import place.sita.labelle.core.TestContainersTest; import place.sita.labelle.core.cache.CacheRegistry; -import place.sita.labelle.core.repository.inrepository.image.ImageService; +import place.sita.labelle.core.repository.inrepository.InRepositoryService; import place.sita.labelle.core.repository.inrepository.tags.Tag; import place.sita.labelle.core.repository.repositories.Repository; import place.sita.labelle.core.repository.repositories.RepositoryService; @@ -14,7 +14,7 @@ import static org.assertj.core.api.Assertions.assertThat; -public class InRepositoryTest extends TestContainersTest { +public class ImageServiceIdsTest extends TestContainersTest { @Autowired private DSLContext context;