From c38ece94e4495642dabe19209ae5be5a8a56edb3 Mon Sep 17 00:00:00 2001 From: David Walluck Date: Tue, 19 Mar 2024 19:23:10 -0400 Subject: [PATCH] Replace io.quarkus.test.junit.mockito.InjectMock with io.quarkus.test.InjectMock --- .../redhat/hacbs/recipes/location/RecipeLayoutManagerTest.java | 2 -- .../artifactcache/services/ContainerRegistryStorageTest.java | 2 +- .../artifactcache/services/RelocationResourceTestCase.java | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/java-components/build-recipes-database/src/test/java/com/redhat/hacbs/recipes/location/RecipeLayoutManagerTest.java b/java-components/build-recipes-database/src/test/java/com/redhat/hacbs/recipes/location/RecipeLayoutManagerTest.java index a522e27ba..e1e0d83bd 100644 --- a/java-components/build-recipes-database/src/test/java/com/redhat/hacbs/recipes/location/RecipeLayoutManagerTest.java +++ b/java-components/build-recipes-database/src/test/java/com/redhat/hacbs/recipes/location/RecipeLayoutManagerTest.java @@ -1,7 +1,5 @@ package com.redhat.hacbs.recipes.location; -import static org.junit.jupiter.api.Assertions.*; - import java.nio.file.Path; import org.junit.jupiter.api.Test; diff --git a/java-components/cache/src/test/java/com/redhat/hacbs/artifactcache/services/ContainerRegistryStorageTest.java b/java-components/cache/src/test/java/com/redhat/hacbs/artifactcache/services/ContainerRegistryStorageTest.java index 487d2e476..8b976751f 100644 --- a/java-components/cache/src/test/java/com/redhat/hacbs/artifactcache/services/ContainerRegistryStorageTest.java +++ b/java-components/cache/src/test/java/com/redhat/hacbs/artifactcache/services/ContainerRegistryStorageTest.java @@ -20,9 +20,9 @@ import com.redhat.hacbs.artifactcache.artifactwatch.RebuiltArtifacts; import com.redhat.hacbs.resources.util.HashUtil; +import io.quarkus.test.InjectMock; import io.quarkus.test.common.QuarkusTestResource; import io.quarkus.test.junit.QuarkusTest; -import io.quarkus.test.junit.mockito.InjectMock; @QuarkusTestResource(value = ContainerRegistryTestResourceManager.class, restrictToAnnotatedClass = true) @QuarkusTest diff --git a/java-components/cache/src/test/java/com/redhat/hacbs/artifactcache/services/RelocationResourceTestCase.java b/java-components/cache/src/test/java/com/redhat/hacbs/artifactcache/services/RelocationResourceTestCase.java index b7d3ef1d0..c1ea09007 100644 --- a/java-components/cache/src/test/java/com/redhat/hacbs/artifactcache/services/RelocationResourceTestCase.java +++ b/java-components/cache/src/test/java/com/redhat/hacbs/artifactcache/services/RelocationResourceTestCase.java @@ -10,9 +10,9 @@ import com.redhat.hacbs.artifactcache.artifactwatch.RebuiltArtifacts; import com.redhat.hacbs.artifactcache.resources.V1CacheMavenResource; +import io.quarkus.test.InjectMock; import io.quarkus.test.common.http.TestHTTPEndpoint; import io.quarkus.test.junit.QuarkusTest; -import io.quarkus.test.junit.mockito.InjectMock; import io.restassured.RestAssured; import io.restassured.parsing.Parser;