From a50aa9a25836a7522e3d46af977fdf79625bcd91 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Wed, 14 Oct 2020 13:14:51 +0300 Subject: [PATCH] BookDevControllerTest: 'dev' profile only Signed-off-by: Pekka Helenius --- .../com/fjordtek/bookstore/web/dev/BookDevControllerTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bookstore/src/test/java/com/fjordtek/bookstore/web/dev/BookDevControllerTest.java b/bookstore/src/test/java/com/fjordtek/bookstore/web/dev/BookDevControllerTest.java index 0bef035..51b527e 100644 --- a/bookstore/src/test/java/com/fjordtek/bookstore/web/dev/BookDevControllerTest.java +++ b/bookstore/src/test/java/com/fjordtek/bookstore/web/dev/BookDevControllerTest.java @@ -8,6 +8,7 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.junit4.SpringRunner; import com.fjordtek.bookstore.web.BookDevController; @@ -21,6 +22,9 @@ import com.fjordtek.bookstore.web.BookDevController; @RunWith(SpringRunner.class) @SpringBootTest +@ActiveProfiles( + profiles = { "dev" } + ) public class BookDevControllerTest { @Autowired