public abstract class DatagramUnicastTest extends AbstractDatagramTest
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DatagramUnicastTest.WrapType |
AbstractComboTestsuiteTest.Runner<SB extends io.netty.bootstrap.AbstractBootstrap<?,?>,CB extends io.netty.bootstrap.AbstractBootstrap<?,?>>cb, logger, sb| Constructor and Description |
|---|
DatagramUnicastTest() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
closeChannel(io.netty.channel.Channel channel) |
protected boolean |
disconnectMightFail(io.netty.channel.socket.DatagramChannel channel) |
protected abstract boolean |
isConnected(io.netty.channel.Channel channel) |
protected InetSocketAddress |
sendToAddress(InetSocketAddress serverAddress) |
protected abstract io.netty.channel.Channel |
setupClientChannel(io.netty.bootstrap.Bootstrap cb,
byte[] bytes,
CountDownLatch latch,
AtomicReference<Throwable> errorRef) |
protected abstract io.netty.channel.Channel |
setupServerChannel(io.netty.bootstrap.Bootstrap sb,
byte[] bytes,
SocketAddress sender,
CountDownLatch latch,
AtomicReference<Throwable> errorRef,
boolean echo) |
protected abstract boolean |
supportDisconnect() |
void |
testReceiveEmptyDatagrams(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb) |
void |
testReceiveEmptyDatagrams(org.junit.jupiter.api.TestInfo testInfo) |
void |
testSendToUnresolvableAddress(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb) |
void |
testSendToUnresolvableAddress(org.junit.jupiter.api.TestInfo testInfo) |
void |
testSimpleSendCompositeDirectByteBuf(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb) |
void |
testSimpleSendCompositeDirectByteBuf(org.junit.jupiter.api.TestInfo testInfo) |
void |
testSimpleSendCompositeHeapByteBuf(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb) |
void |
testSimpleSendCompositeHeapByteBuf(org.junit.jupiter.api.TestInfo testInfo) |
void |
testSimpleSendCompositeMixedByteBuf(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb) |
void |
testSimpleSendCompositeMixedByteBuf(org.junit.jupiter.api.TestInfo testInfo) |
void |
testSimpleSendDirectByteBuf(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb) |
void |
testSimpleSendDirectByteBuf(org.junit.jupiter.api.TestInfo testInfo) |
void |
testSimpleSendHeapByteBuf(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb) |
void |
testSimpleSendHeapByteBuf(org.junit.jupiter.api.TestInfo testInfo) |
void |
testSimpleSendWithConnect(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb) |
void |
testSimpleSendWithConnect(org.junit.jupiter.api.TestInfo testInfo) |
void |
testSimpleSendWithoutBind(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb) |
void |
testSimpleSendWithoutBind(org.junit.jupiter.api.TestInfo testInfo) |
protected abstract io.netty.channel.ChannelFuture |
write(io.netty.channel.Channel cc,
io.netty.buffer.ByteBuf buf,
SocketAddress remote,
DatagramUnicastTest.WrapType wrapType) |
configure, groupInternetProtocalFamily, internetProtocolFamily, newFactories, newSocketAddress, socketInternetProtocalFamilynewAllocators, run@Test
public void testSimpleSendDirectByteBuf(org.junit.jupiter.api.TestInfo testInfo)
throws Throwable
Throwablepublic void testSimpleSendDirectByteBuf(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb)
throws Throwable
Throwable@Test
public void testSimpleSendHeapByteBuf(org.junit.jupiter.api.TestInfo testInfo)
throws Throwable
Throwablepublic void testSimpleSendHeapByteBuf(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb)
throws Throwable
Throwable@Test
public void testSimpleSendCompositeDirectByteBuf(org.junit.jupiter.api.TestInfo testInfo)
throws Throwable
Throwablepublic void testSimpleSendCompositeDirectByteBuf(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb)
throws Throwable
Throwable@Test
public void testSimpleSendCompositeHeapByteBuf(org.junit.jupiter.api.TestInfo testInfo)
throws Throwable
Throwablepublic void testSimpleSendCompositeHeapByteBuf(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb)
throws Throwable
Throwable@Test
public void testSimpleSendCompositeMixedByteBuf(org.junit.jupiter.api.TestInfo testInfo)
throws Throwable
Throwablepublic void testSimpleSendCompositeMixedByteBuf(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb)
throws Throwable
Throwable@Test
public void testSimpleSendWithoutBind(org.junit.jupiter.api.TestInfo testInfo)
throws Throwable
Throwablepublic void testSimpleSendWithoutBind(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb)
throws Throwable
Throwable@Test
public void testSimpleSendWithConnect(org.junit.jupiter.api.TestInfo testInfo)
throws Throwable
Throwablepublic void testSimpleSendWithConnect(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb)
throws Throwable
Throwable@Test
public void testReceiveEmptyDatagrams(org.junit.jupiter.api.TestInfo testInfo)
throws Throwable
Throwablepublic void testReceiveEmptyDatagrams(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb)
throws Throwable
Throwable@Test
public void testSendToUnresolvableAddress(org.junit.jupiter.api.TestInfo testInfo)
throws Throwable
Throwablepublic void testSendToUnresolvableAddress(io.netty.bootstrap.Bootstrap sb,
io.netty.bootstrap.Bootstrap cb)
throws Throwable
Throwableprotected abstract boolean isConnected(io.netty.channel.Channel channel)
protected abstract io.netty.channel.Channel setupClientChannel(io.netty.bootstrap.Bootstrap cb,
byte[] bytes,
CountDownLatch latch,
AtomicReference<Throwable> errorRef)
throws Throwable
Throwableprotected abstract io.netty.channel.Channel setupServerChannel(io.netty.bootstrap.Bootstrap sb,
byte[] bytes,
SocketAddress sender,
CountDownLatch latch,
AtomicReference<Throwable> errorRef,
boolean echo)
throws Throwable
Throwableprotected abstract boolean supportDisconnect()
protected boolean disconnectMightFail(io.netty.channel.socket.DatagramChannel channel)
protected abstract io.netty.channel.ChannelFuture write(io.netty.channel.Channel cc,
io.netty.buffer.ByteBuf buf,
SocketAddress remote,
DatagramUnicastTest.WrapType wrapType)
protected static void closeChannel(io.netty.channel.Channel channel)
throws Exception
Exceptionprotected InetSocketAddress sendToAddress(InetSocketAddress serverAddress)
Copyright © 2008–2025 The Netty Project. All rights reserved.