Skip to content

Commit

Permalink
JUnit5 support (#51)
Browse files Browse the repository at this point in the history
* First preparation for JUnit5

Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io>

* Migrated all tests to JUnit5

Signed-off-by: Dominic Schabel <dominic.schabel@bosch.io>
  • Loading branch information
schabdo committed Feb 16, 2021
1 parent efcac9b commit 3b86c25
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hawkbit-device-simulator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
</dependency>
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-junit4</artifactId>
<artifactId>allure-junit5</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import io.qameta.allure.Feature;
import io.qameta.allure.Story;
import org.eclipse.hawkbit.simulator.http.BasicAuthProperties;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.springframework.test.context.TestPropertySource;

@Feature("Component Tests - Hawkbit Device Simulator")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import io.qameta.allure.Feature;
import io.qameta.allure.Story;
import org.eclipse.hawkbit.simulator.http.BasicAuthProperties;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.TestPropertySource;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
package org.eclipse.hawkbit.simulator;

import org.eclipse.hawkbit.simulator.amqp.AmqpProperties;
import org.junit.runner.RunWith;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.web.servlet.MockMvc;

@SpringBootTest
@AutoConfigureMockMvc
@RunWith(SpringRunner.class)
@TestPropertySource(properties = {AmqpProperties.CONFIGURATION_ENABLED_PROPERTY + " = false"})
public abstract class DdiWebSecurityTest {
public class DdiWebSecurityTest {

@Autowired
protected MockMvc mockMvc;
Expand Down

0 comments on commit 3b86c25

Please sign in to comment.