JAVA-10377 Moved code for spring-response-header article to spring-rest-http
This commit is contained in:
parent
0776871206
commit
ec6ff84766
|
@ -7,7 +7,7 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
|
||||||
|
|
||||||
### Relevant Articles:
|
### Relevant Articles:
|
||||||
|
|
||||||
- [How to Set a Header on a Response with Spring 5](https://www.baeldung.com/spring-response-header) - The tests contained for this article rely on the sample application within the [spring-resttemplate](/spring-resttemplate) module
|
- [How to Set a Header on a Response with Spring 5](https://www.baeldung.com/spring-response-header)
|
||||||
- [Returning Custom Status Codes from Spring Controllers](https://www.baeldung.com/spring-mvc-controller-custom-http-status-code)
|
- [Returning Custom Status Codes from Spring Controllers](https://www.baeldung.com/spring-mvc-controller-custom-http-status-code)
|
||||||
- [Spring RequestMapping](https://www.baeldung.com/spring-requestmapping)
|
- [Spring RequestMapping](https://www.baeldung.com/spring-requestmapping)
|
||||||
- [Guide to DeferredResult in Spring](https://www.baeldung.com/spring-deferred-result)
|
- [Guide to DeferredResult in Spring](https://www.baeldung.com/spring-deferred-result)
|
||||||
|
|
|
@ -19,7 +19,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||||
public class ResponseHeaderLiveTest {
|
public class ResponseHeaderLiveTest {
|
||||||
|
|
||||||
private static final String BASE_URL = "http://localhost:8082/spring-rest";
|
private static final String BASE_URL = "http://localhost:8080";
|
||||||
private static final String SINGLE_BASE_URL = BASE_URL + "/single-response-header";
|
private static final String SINGLE_BASE_URL = BASE_URL + "/single-response-header";
|
||||||
private static final String FILTER_BASE_URL = BASE_URL + "/filter-response-header";
|
private static final String FILTER_BASE_URL = BASE_URL + "/filter-response-header";
|
||||||
private static final String SERVICE_SINGLE_RESPONSE_HEADER = "Baeldung-Example-Header";
|
private static final String SERVICE_SINGLE_RESPONSE_HEADER = "Baeldung-Example-Header";
|
||||||
|
|
|
@ -5,10 +5,8 @@ import org.junit.runner.RunWith;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.springframework.test.context.junit4.SpringRunner;
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
|
||||||
import com.baeldung.responseheaders.ResponseHeadersApplication;
|
|
||||||
|
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@SpringBootTest(classes = { ResponseHeadersApplication.class })
|
@SpringBootTest
|
||||||
public class SpringContextTest {
|
public class SpringContextTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue