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

Motivation:

b89a807d15fd925c21d3c875836145cd5302c8c9 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
parent 7570cdb0b5
commit f9ca270e62

View File

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