Polishing

This commit is contained in:
Andy Wilkinson 2016-03-01 14:30:27 +00:00
parent 8d2421938b
commit 3ca67e669d
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ public class SampleSecureOAuth2ApplicationTests {
MvcResult flightsAction = this.mvc
.perform(get("/flights/1").accept(MediaTypes.HAL_JSON)
.header("Authorization", "Bearer " + accessToken))
.andExpect(
header().string("Content-Type", MediaTypes.HAL_JSON.toString() + ";charset=UTF-8"))
.andExpect(header().string("Content-Type",
MediaTypes.HAL_JSON.toString() + ";charset=UTF-8"))
.andExpect(status().isOk()).andDo(print()).andReturn();
Flight flight = this.objectMapper.readValue(