diff --git a/src/test/java/com/pedro/rest/RestApplicationTests.java b/src/test/java/com/pedro/rest/RestApplicationTests.java index c8f59b3..02edacf 100644 --- a/src/test/java/com/pedro/rest/RestApplicationTests.java +++ b/src/test/java/com/pedro/rest/RestApplicationTests.java @@ -1,13 +1,13 @@ package com.pedro.rest; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.ActiveProfiles; import static org.junit.jupiter.api.Assertions.assertNotNull; @SpringBootTest -@Disabled +@ActiveProfiles("test") class RestApplicationTests { @Test diff --git a/src/test/java/com/pedro/rest/controller/EmployeeControllerTest.java b/src/test/java/com/pedro/rest/controller/EmployeeControllerTest.java index 354b137..f48a56d 100644 --- a/src/test/java/com/pedro/rest/controller/EmployeeControllerTest.java +++ b/src/test/java/com/pedro/rest/controller/EmployeeControllerTest.java @@ -11,6 +11,7 @@ import org.springframework.boot.test.context.SpringBootTest; import org.springframework.hateoas.MediaTypes; import org.springframework.http.MediaType; +import org.springframework.test.context.ActiveProfiles; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.setup.MockMvcBuilders; @@ -23,7 +24,7 @@ @SpringBootTest @AutoConfigureMockMvc -@Disabled +@ActiveProfiles("test") class EmployeeControllerTest { @Autowired