Fix test-error which was introduced by porting tests to junit5 (#11330)

Motivation:

b89a807d15 moved the buffer tests to junit5 but introduced a small error which could lead to test-failure

Modifications:

Correctly override the method and assert that super throws (as we can not expand the buffer).

Result:

No more test failures
This commit is contained in:
Norman Maurer 2021-05-28 09:26:51 +02:00 committed by GitHub
parent b7e23e2c39
commit 4d681bfc6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,6 +239,17 @@ public class WrappedUnpooledUnsafeByteBufTest extends BigEndianUnsafeDirectByteB
});
}
@Test
@Override
public void testGetBytesByteBuffer() {
assertThrows(IndexOutOfBoundsException.class, new Executable() {
@Override
public void execute() {
WrappedUnpooledUnsafeByteBufTest.super.testGetBytesByteBuffer();
}
});
}
@Test
@Override
public void testForEachByteDesc2() {