Remove dumpString from DataBufferTestUtils
See gh-24786
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -76,7 +76,7 @@ public class HttpHandlerConnectorTests {
|
||||
assertThat(headers.get(HttpHeaders.COOKIE)).isEqualTo(Collections.singletonList("custom-cookie=c0"));
|
||||
|
||||
DataBuffer buffer = request.getBody().blockFirst(Duration.ZERO);
|
||||
assertThat(DataBufferTestUtils.dumpString(buffer, UTF_8)).isEqualTo("Custom body");
|
||||
assertThat(buffer.toString(UTF_8)).isEqualTo("Custom body");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -102,7 +102,7 @@ public class HttpHandlerConnectorTests {
|
||||
assertThat(headers.get(HttpHeaders.SET_COOKIE)).isEqualTo(Collections.singletonList("custom-cookie=c0"));
|
||||
|
||||
DataBuffer buffer = response.getBody().blockFirst(Duration.ZERO);
|
||||
assertThat(DataBufferTestUtils.dumpString(buffer, UTF_8)).isEqualTo("Custom body");
|
||||
assertThat(buffer.toString(UTF_8)).isEqualTo("Custom body");
|
||||
}
|
||||
|
||||
@Test // gh-23936
|
||||
|
||||
Reference in New Issue
Block a user