/** * Returns a test instance of {@link CancelFrame}. * * @return a test instance of {@link CancelFrame} */ public static CancelFrame createTestCancelFrame() { return createCancelFrame(DEFAULT); }
public static CancelFrame createTestCancelFrame() { return createCancelFrame(DEFAULT); }
return createRequestNFrame(byteBuf); case CANCEL: return createCancelFrame(byteBuf); case PAYLOAD: return createPayloadFrame(byteBuf);
@DisplayName("createCancelFrame throws NullPointerException with null byteBufAllocator") @Test void createCancelFrameNullByteBufAllocator() { assertThatNullPointerException() .isThrownBy(() -> createCancelFrame((ByteBufAllocator) null)) .withMessage("byteBufAllocator must not be null"); } }
return createRequestNFrame(byteBuf); case CANCEL: return createCancelFrame(byteBuf); case PAYLOAD: return createPayloadFrame(byteBuf);