/** * Returns a test instance of {@link KeepaliveFrame}. * * @return a test instance of {@link KeepaliveFrame} */ public static KeepaliveFrame createTestKeepaliveFrame() { return createKeepaliveFrame(DEFAULT, false, 1, null); }
public static KeepaliveFrame createTestKeepaliveFrame() { return createKeepaliveFrame(DEFAULT, false, 1, null); }
@DisplayName("createKeepaliveFrame throws NullPointerException with null byteBufAllocator") @Test void createKeepaliveFrameNullByteBufAllocator() { assertThatNullPointerException() .isThrownBy(() -> createKeepaliveFrame(null, true, 100, null)) .withMessage("byteBufAllocator must not be null"); }
return createLeaseFrame(byteBuf); case KEEPALIVE: return createKeepaliveFrame(byteBuf); case REQUEST_RESPONSE: return createRequestResponseFrame(byteBuf);
return createLeaseFrame(byteBuf); case KEEPALIVE: return createKeepaliveFrame(byteBuf); case REQUEST_RESPONSE: return createRequestResponseFrame(byteBuf);