Browse Source

BookDevControllerTest: 'dev' profile only

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
a50aa9a258
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      bookstore/src/test/java/com/fjordtek/bookstore/web/dev/BookDevControllerTest.java

+ 4
- 0
bookstore/src/test/java/com/fjordtek/bookstore/web/dev/BookDevControllerTest.java View File

@ -8,6 +8,7 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.junit4.SpringRunner;
import com.fjordtek.bookstore.web.BookDevController; import com.fjordtek.bookstore.web.BookDevController;
@ -21,6 +22,9 @@ import com.fjordtek.bookstore.web.BookDevController;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest @SpringBootTest
@ActiveProfiles(
profiles = { "dev" }
)
public class BookDevControllerTest { public class BookDevControllerTest {
@Autowired @Autowired


Loading…
Cancel
Save