|
@ -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 |
|
|