diff --git a/hawkbit-artifact-repository-filesystem/pom.xml b/hawkbit-artifact-repository-filesystem/pom.xml index e6d9fc090b..fb73316a40 100644 --- a/hawkbit-artifact-repository-filesystem/pom.xml +++ b/hawkbit-artifact-repository-filesystem/pom.xml @@ -47,7 +47,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-core/pom.xml b/hawkbit-core/pom.xml index 81fc9d5594..c800756f32 100644 --- a/hawkbit-core/pom.xml +++ b/hawkbit-core/pom.xml @@ -45,7 +45,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-core/src/test/java/org/eclipse/hawkbit/api/Base62UtilTest.java b/hawkbit-core/src/test/java/org/eclipse/hawkbit/api/Base62UtilTest.java index f7256c3d5a..df22b7e2a8 100644 --- a/hawkbit-core/src/test/java/org/eclipse/hawkbit/api/Base62UtilTest.java +++ b/hawkbit-core/src/test/java/org/eclipse/hawkbit/api/Base62UtilTest.java @@ -10,7 +10,7 @@ import static org.assertj.core.api.Assertions.assertThat; -import org.junit.Test; +import org.junit.jupiter.api.Test; import io.qameta.allure.Description; import io.qameta.allure.Feature; diff --git a/hawkbit-core/src/test/java/org/eclipse/hawkbit/api/PropertyBasedArtifactUrlHandlerTest.java b/hawkbit-core/src/test/java/org/eclipse/hawkbit/api/PropertyBasedArtifactUrlHandlerTest.java index 355639d73e..2ab19d884d 100644 --- a/hawkbit-core/src/test/java/org/eclipse/hawkbit/api/PropertyBasedArtifactUrlHandlerTest.java +++ b/hawkbit-core/src/test/java/org/eclipse/hawkbit/api/PropertyBasedArtifactUrlHandlerTest.java @@ -17,21 +17,21 @@ import org.eclipse.hawkbit.api.ArtifactUrlHandlerProperties.UrlProtocol; import org.eclipse.hawkbit.api.URLPlaceholder.SoftwareData; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.junit.MockitoJUnitRunner; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import io.qameta.allure.Description; import io.qameta.allure.Feature; import io.qameta.allure.Story; +import org.mockito.junit.jupiter.MockitoExtension; /** * Tests for creating urls to download artifacts. */ @Feature("Unit Tests - Artifact URL Handler") @Story("Test to generate the artifact download URL") -@RunWith(MockitoJUnitRunner.class) +@ExtendWith(MockitoExtension.class) public class PropertyBasedArtifactUrlHandlerTest { private static final String TEST_PROTO = "coap"; @@ -58,7 +58,7 @@ public class PropertyBasedArtifactUrlHandlerTest { private static URLPlaceholder placeholder = new URLPlaceholder(TENANT, TENANT_ID, CONTROLLER_ID, TARGETID, new SoftwareData(SOFTWAREMODULEID, FILENAME_DECODE, ARTIFACTID, SHA1HASH)); - @Before + @BeforeEach public void setup() { properties = new ArtifactUrlHandlerProperties(); urlHandlerUnderTest = new PropertyBasedArtifactUrlHandler(properties); diff --git a/hawkbit-dmf/hawkbit-dmf-amqp/pom.xml b/hawkbit-dmf/hawkbit-dmf-amqp/pom.xml index e92eeb85f0..a8accd3719 100644 --- a/hawkbit-dmf/hawkbit-dmf-amqp/pom.xml +++ b/hawkbit-dmf/hawkbit-dmf-amqp/pom.xml @@ -84,7 +84,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-http-security/pom.xml b/hawkbit-http-security/pom.xml index 3a02d20209..92a03812cc 100644 --- a/hawkbit-http-security/pom.xml +++ b/hawkbit-http-security/pom.xml @@ -53,7 +53,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-repository/hawkbit-repository-api/pom.xml b/hawkbit-repository/hawkbit-repository-api/pom.xml index 7fa3049b55..541770d1a1 100644 --- a/hawkbit-repository/hawkbit-repository-api/pom.xml +++ b/hawkbit-repository/hawkbit-repository-api/pom.xml @@ -71,7 +71,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-repository/hawkbit-repository-core/pom.xml b/hawkbit-repository/hawkbit-repository-core/pom.xml index 87696f1930..0805fd302c 100644 --- a/hawkbit-repository/hawkbit-repository-core/pom.xml +++ b/hawkbit-repository/hawkbit-repository-core/pom.xml @@ -59,7 +59,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-repository/hawkbit-repository-jpa/pom.xml b/hawkbit-repository/hawkbit-repository-jpa/pom.xml index cd7fec7bcd..d41ac1a567 100644 --- a/hawkbit-repository/hawkbit-repository-jpa/pom.xml +++ b/hawkbit-repository/hawkbit-repository-jpa/pom.xml @@ -85,7 +85,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-rest/hawkbit-ddi-api/pom.xml b/hawkbit-rest/hawkbit-ddi-api/pom.xml index 5f8fd66134..27ed45564b 100644 --- a/hawkbit-rest/hawkbit-ddi-api/pom.xml +++ b/hawkbit-rest/hawkbit-ddi-api/pom.xml @@ -40,23 +40,13 @@ - com.fasterxml.jackson.core - jackson-databind - test - - - junit - junit + org.springframework.boot + spring-boot-starter-test test io.qameta.allure - allure-junit4 - test - - - org.assertj - assertj-core + allure-junit5 test diff --git a/hawkbit-rest/hawkbit-ddi-resource/pom.xml b/hawkbit-rest/hawkbit-ddi-resource/pom.xml index 3feded927b..45a96e57fb 100644 --- a/hawkbit-rest/hawkbit-ddi-resource/pom.xml +++ b/hawkbit-rest/hawkbit-ddi-resource/pom.xml @@ -104,7 +104,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-rest/hawkbit-mgmt-api/pom.xml b/hawkbit-rest/hawkbit-mgmt-api/pom.xml index 99df616273..b7d3bcb04c 100644 --- a/hawkbit-rest/hawkbit-mgmt-api/pom.xml +++ b/hawkbit-rest/hawkbit-mgmt-api/pom.xml @@ -46,7 +46,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-rest/hawkbit-mgmt-resource/pom.xml b/hawkbit-rest/hawkbit-mgmt-resource/pom.xml index e78e3c98c7..33082e4eba 100644 --- a/hawkbit-rest/hawkbit-mgmt-resource/pom.xml +++ b/hawkbit-rest/hawkbit-mgmt-resource/pom.xml @@ -108,7 +108,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-rest/hawkbit-rest-core/pom.xml b/hawkbit-rest/hawkbit-rest-core/pom.xml index 05a245fbd4..9d5e3035e1 100644 --- a/hawkbit-rest/hawkbit-rest-core/pom.xml +++ b/hawkbit-rest/hawkbit-rest-core/pom.xml @@ -71,7 +71,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-rest/hawkbit-rest-docs/pom.xml b/hawkbit-rest/hawkbit-rest-docs/pom.xml index 5c7de29b41..789a3dd01e 100644 --- a/hawkbit-rest/hawkbit-rest-docs/pom.xml +++ b/hawkbit-rest/hawkbit-rest-docs/pom.xml @@ -96,7 +96,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-runtime/hawkbit-update-server/pom.xml b/hawkbit-runtime/hawkbit-update-server/pom.xml index e1aaf2ad54..b3100e396e 100644 --- a/hawkbit-runtime/hawkbit-update-server/pom.xml +++ b/hawkbit-runtime/hawkbit-update-server/pom.xml @@ -67,7 +67,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-security-core/pom.xml b/hawkbit-security-core/pom.xml index 023bbc25d9..f5498b2030 100644 --- a/hawkbit-security-core/pom.xml +++ b/hawkbit-security-core/pom.xml @@ -64,7 +64,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-security-integration/pom.xml b/hawkbit-security-integration/pom.xml index bd9bddf1cf..074feb3892 100644 --- a/hawkbit-security-integration/pom.xml +++ b/hawkbit-security-integration/pom.xml @@ -50,7 +50,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/hawkbit-ui/pom.xml b/hawkbit-ui/pom.xml index c19f550f2a..e2aa641efe 100644 --- a/hawkbit-ui/pom.xml +++ b/hawkbit-ui/pom.xml @@ -226,7 +226,7 @@ io.qameta.allure - allure-junit4 + allure-junit5 test diff --git a/pom.xml b/pom.xml index 10af24e2e2..90aba7a640 100644 --- a/pom.xml +++ b/pom.xml @@ -423,7 +423,7 @@ listener - io.qameta.allure.junit4.AllureJunit4 + io.qameta.allure.junit5.AllureJunit5 @@ -446,7 +446,7 @@ listener - io.qameta.allure.junit4.AllureJunit4 + io.qameta.allure.junit5.AllureJunit5 @@ -763,34 +763,9 @@ commons-io ${commons-io.version} - - org.springframework.boot - spring-boot-starter-test - ${spring.boot.version} - - - org.springframework.boot - spring-boot-starter-logging - - - - org.junit.jupiter - junit-jupiter - - - - org.junit.vintage - junit-vintage-engine - - - org.mockito - mockito-junit-jupiter - - - io.qameta.allure - allure-junit4 + allure-junit5 ${allure.version} test