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:
parent
7570cdb0b5
commit
f9ca270e62
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user