Cleanup and additional test
This commit is contained in:
@@ -290,29 +290,11 @@ public class HttpPostIntegrationTests {
|
||||
|
||||
@Test
|
||||
public void uppercaseSSE() throws Exception {
|
||||
String s = this.rest.exchange(RequestEntity.post(new URI("/uppercase")).contentType(MediaType.APPLICATION_JSON)
|
||||
.body("[\"foo\",\"bar\"]"), String.class).getBody();
|
||||
assertThat(this.rest.exchange(RequestEntity.post(new URI("/uppercase")).contentType(MediaType.APPLICATION_JSON)
|
||||
.body("[\"foo\",\"bar\"]"), String.class).getBody())
|
||||
.isEqualTo(sse("(FOO)", "(BAR)"));
|
||||
}
|
||||
|
||||
// @Test
|
||||
// public void uppercaseSSE() throws Exception {
|
||||
// assertThat(this.rest.exchange(RequestEntity.post(new URI("/uppercase"))
|
||||
// .accept(EVENT_STREAM).contentType(MediaType.APPLICATION_JSON)
|
||||
// .body("[\"foo\",\"bar\"]"), String.class).getBody())
|
||||
// .isEqualTo(sse("(FOO)", "(BAR)"));
|
||||
//
|
||||
//// String body = this.rest.exchange(RequestEntity.post(new URI("/uppercase")).contentType(MediaType.APPLICATION_JSON)
|
||||
//// .body("[\"foo\",\"bar\"]"), String.class).getBody();
|
||||
//
|
||||
//// System.out.println(body);
|
||||
//
|
||||
//// assertThat(body)
|
||||
//// .isEqualTo(sse("(FOO)", "(BAR)"));
|
||||
// }
|
||||
|
||||
@Test
|
||||
public void sum() throws Exception {
|
||||
|
||||
@@ -351,7 +333,6 @@ public class HttpPostIntegrationTests {
|
||||
}
|
||||
|
||||
private String sse(String... values) {
|
||||
//return "data:" + StringUtils.arrayToDelimitedString(values, "\n\ndata:") + "\n\n";
|
||||
return "[\"" + StringUtils.arrayToDelimitedString(values, "\",\"") + "\"]";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user