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:
parent
b7e23e2c39
commit
4d681bfc6f
@ -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
|
@Test
|
||||||
@Override
|
@Override
|
||||||
public void testForEachByteDesc2() {
|
public void testForEachByteDesc2() {
|
||||||
|
Loading…
Reference in New Issue
Block a user