BAEL-6058: fixed formatting for line continuation
This commit is contained in:
parent
77d6a987a8
commit
a844943283
|
@ -29,15 +29,15 @@ public class HeaderInterceptorIntegrationTest {
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
public void setup() {
|
public void setup() {
|
||||||
this.mockMvc = MockMvcBuilders.webAppContextSetup(this.webApplicationContext)
|
this.mockMvc = MockMvcBuilders.webAppContextSetup(this.webApplicationContext)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenARequestWithOperatorHeader_whenWeCallFooEndpoint_thenOperatorIsExtracted() throws Exception {
|
public void givenARequestWithOperatorHeader_whenWeCallFooEndpoint_thenOperatorIsExtracted() throws Exception {
|
||||||
MockHttpServletResponse response = this.mockMvc.perform(get("/foo").header("operator", "John.Doe"))
|
MockHttpServletResponse response = this.mockMvc.perform(get("/foo").header("operator", "John.Doe"))
|
||||||
.andDo(print())
|
.andDo(print())
|
||||||
.andReturn()
|
.andReturn()
|
||||||
.getResponse();
|
.getResponse();
|
||||||
|
|
||||||
assertThat(response.getContentAsString()).isEqualTo("hello, John.Doe");
|
assertThat(response.getContentAsString()).isEqualTo("hello, John.Doe");
|
||||||
}
|
}
|
||||||
|
@ -45,9 +45,9 @@ public class HeaderInterceptorIntegrationTest {
|
||||||
@Test
|
@Test
|
||||||
public void givenARequestWithOperatorHeader_whenWeCallBarEndpoint_thenOperatorIsExtracted() throws Exception {
|
public void givenARequestWithOperatorHeader_whenWeCallBarEndpoint_thenOperatorIsExtracted() throws Exception {
|
||||||
MockHttpServletResponse response = this.mockMvc.perform(get("/bar").header("operator", "John.Doe"))
|
MockHttpServletResponse response = this.mockMvc.perform(get("/bar").header("operator", "John.Doe"))
|
||||||
.andDo(print())
|
.andDo(print())
|
||||||
.andReturn()
|
.andReturn()
|
||||||
.getResponse();
|
.getResponse();
|
||||||
|
|
||||||
assertThat(response.getContentAsString()).isEqualTo("hello, John.Doe");
|
assertThat(response.getContentAsString()).isEqualTo("hello, John.Doe");
|
||||||
}
|
}
|
||||||
|
@ -55,11 +55,11 @@ public class HeaderInterceptorIntegrationTest {
|
||||||
@Test
|
@Test
|
||||||
public void givenARequestWithOperatorHeader_whenWeCallBuzzEndpoint_thenOperatorIsIntercepted() throws Exception {
|
public void givenARequestWithOperatorHeader_whenWeCallBuzzEndpoint_thenOperatorIsIntercepted() throws Exception {
|
||||||
MockHttpServletResponse response = this.mockMvc.perform(get("/buzz").header("operator", "John.Doe"))
|
MockHttpServletResponse response = this.mockMvc.perform(get("/buzz").header("operator", "John.Doe"))
|
||||||
.andDo(print())
|
.andDo(print())
|
||||||
.andReturn()
|
.andReturn()
|
||||||
.getResponse();
|
.getResponse();
|
||||||
|
|
||||||
assertThat(response.getContentAsString()).isEqualTo("hello, John.Doe");
|
assertThat(response.getContentAsString()).isEqualTo("hello, John.Doe");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue