|
1 | 1 | package com.baeldung.annotation.servletcomponentscan; |
2 | 2 |
|
| 3 | +import static org.junit.Assert.assertEquals; |
| 4 | +import static org.junit.Assert.assertNotNull; |
| 5 | +import static org.junit.Assert.assertNull; |
| 6 | + |
| 7 | +import javax.servlet.FilterRegistration; |
| 8 | +import javax.servlet.ServletContext; |
| 9 | + |
3 | 10 | import org.junit.Test; |
4 | 11 | import org.junit.runner.RunWith; |
5 | 12 | import org.springframework.beans.factory.annotation.Autowired; |
6 | | -import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; |
7 | 13 | import org.springframework.boot.test.context.SpringBootTest; |
8 | 14 | import org.springframework.boot.test.web.client.TestRestTemplate; |
9 | 15 | import org.springframework.http.HttpStatus; |
10 | 16 | import org.springframework.http.ResponseEntity; |
11 | 17 | import org.springframework.test.context.TestPropertySource; |
12 | 18 | import org.springframework.test.context.junit4.SpringRunner; |
13 | 19 |
|
14 | | -import javax.servlet.FilterRegistration; |
15 | | -import javax.servlet.ServletContext; |
16 | | - |
17 | | -import static org.junit.Assert.assertEquals; |
18 | | -import static org.junit.Assert.assertNotNull; |
19 | | -import static org.junit.Assert.assertNull; |
20 | | - |
21 | 20 | @RunWith(SpringRunner.class) |
22 | 21 | @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = SpringBootPlainApp.class) |
23 | | -@AutoConfigureMockMvc |
24 | 22 | @TestPropertySource(properties = { "security.basic.enabled=false" }) |
25 | 23 | public class SpringBootWithoutServletComponentIntegrationTest { |
26 | 24 |
|
|
0 commit comments