Polishing

This commit is contained in:
Juergen Hoeller
2023-02-14 11:00:01 +01:00
parent f91b2249b3
commit d7824c7831
2 changed files with 4 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ import static org.mockito.Mockito.mock;
class DataBufferUtilsTests extends AbstractDataBufferAllocatingTests {
private final Resource resource;
private final Path tempFile;
@@ -207,7 +208,7 @@ class DataBufferUtilsTests extends AbstractDataBufferAllocatingTests {
.verify();
}
@ParameterizedDataBufferAllocatingTest // gh-22107
@ParameterizedDataBufferAllocatingTest // gh-22107
void readAsynchronousFileChannelCancelWithoutDemand(DataBufferFactory bufferFactory) throws Exception {
super.bufferFactory = bufferFactory;
@@ -790,7 +791,6 @@ class DataBufferUtilsTests extends AbstractDataBufferAllocatingTests {
.consumeNextWith(stringConsumer("c"))
.expectComplete()
.verify(Duration.ofSeconds(5));
}
private Answer<Integer> putByte(int b) {
@@ -833,7 +833,7 @@ class DataBufferUtilsTests extends AbstractDataBufferAllocatingTests {
.verifyError(DataBufferLimitException.class);
}
@Test // gh-26060
@Test // gh-26060
void joinWithLimitDoesNotOverRelease() {
NettyDataBufferFactory bufferFactory = new NettyDataBufferFactory(PooledByteBufAllocator.DEFAULT);
byte[] bytes = "foo-bar-baz".getBytes(StandardCharsets.UTF_8);
@@ -1006,6 +1006,7 @@ class DataBufferUtilsTests extends AbstractDataBufferAllocatingTests {
.verifyComplete();
}
private static class ZeroDemandSubscriber extends BaseSubscriber<DataBuffer> {
@Override