|
1 | 1 | /*
|
2 |
| - * Copyright 2012-2016 the original author or authors. |
| 2 | + * Copyright 2012-2017 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
29 | 29 |
|
30 | 30 | import org.junit.After;
|
31 | 31 | import org.junit.Test;
|
32 |
| -import org.junit.runner.RunWith; |
33 | 32 |
|
34 | 33 | import org.springframework.boot.SpringApplication;
|
35 | 34 | import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
|
36 | 35 | import org.springframework.boot.autoconfigure.web.BasicErrorControllerMockMvcTests.MinimalWebConfiguration;
|
37 |
| -import org.springframework.boot.test.context.SpringBootTest; |
38 |
| -import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; |
39 | 36 | import org.springframework.boot.test.web.client.TestRestTemplate;
|
40 | 37 | import org.springframework.context.ConfigurableApplicationContext;
|
41 | 38 | import org.springframework.context.annotation.Bean;
|
|
45 | 42 | import org.springframework.http.MediaType;
|
46 | 43 | import org.springframework.http.RequestEntity;
|
47 | 44 | import org.springframework.http.ResponseEntity;
|
48 |
| -import org.springframework.test.annotation.DirtiesContext; |
49 |
| -import org.springframework.test.context.junit4.SpringRunner; |
50 | 45 | import org.springframework.validation.BindException;
|
51 | 46 | import org.springframework.web.bind.MethodArgumentNotValidException;
|
52 | 47 | import org.springframework.web.bind.annotation.PostMapping;
|
|
66 | 61 | * @author Dave Syer
|
67 | 62 | * @author Stephane Nicoll
|
68 | 63 | */
|
69 |
| -@RunWith(SpringRunner.class) |
70 |
| -@DirtiesContext |
71 |
| -@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) |
72 | 64 | public class BasicErrorControllerIntegrationTests {
|
73 | 65 |
|
74 | 66 | private ConfigurableApplicationContext context;
|
|
0 commit comments