Fix compilation errors in ChannelOutboundBufferTest
This commit is contained in:
parent
83296ca9ac
commit
d794ea515b
@ -209,7 +209,7 @@ public class ChannelOutboundBufferTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testWritability() {
|
public void testWritability() {
|
||||||
final StringBuilder buf = new StringBuilder();
|
final StringBuilder buf = new StringBuilder();
|
||||||
EmbeddedChannel ch = new EmbeddedChannel(new ChannelHandlerAdapter() {
|
EmbeddedChannel ch = new EmbeddedChannel(new ChannelInboundHandlerAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
|
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
|
||||||
buf.append(ctx.channel().isWritable());
|
buf.append(ctx.channel().isWritable());
|
||||||
@ -241,7 +241,7 @@ public class ChannelOutboundBufferTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testUserDefinedWritability() {
|
public void testUserDefinedWritability() {
|
||||||
final StringBuilder buf = new StringBuilder();
|
final StringBuilder buf = new StringBuilder();
|
||||||
EmbeddedChannel ch = new EmbeddedChannel(new ChannelHandlerAdapter() {
|
EmbeddedChannel ch = new EmbeddedChannel(new ChannelInboundHandlerAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
|
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
|
||||||
buf.append(ctx.channel().isWritable());
|
buf.append(ctx.channel().isWritable());
|
||||||
@ -273,7 +273,7 @@ public class ChannelOutboundBufferTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testUserDefinedWritability2() {
|
public void testUserDefinedWritability2() {
|
||||||
final StringBuilder buf = new StringBuilder();
|
final StringBuilder buf = new StringBuilder();
|
||||||
EmbeddedChannel ch = new EmbeddedChannel(new ChannelHandlerAdapter() {
|
EmbeddedChannel ch = new EmbeddedChannel(new ChannelInboundHandlerAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
|
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
|
||||||
buf.append(ctx.channel().isWritable());
|
buf.append(ctx.channel().isWritable());
|
||||||
@ -309,7 +309,7 @@ public class ChannelOutboundBufferTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testMixedWritability() {
|
public void testMixedWritability() {
|
||||||
final StringBuilder buf = new StringBuilder();
|
final StringBuilder buf = new StringBuilder();
|
||||||
EmbeddedChannel ch = new EmbeddedChannel(new ChannelHandlerAdapter() {
|
EmbeddedChannel ch = new EmbeddedChannel(new ChannelInboundHandlerAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
|
public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
|
||||||
buf.append(ctx.channel().isWritable());
|
buf.append(ctx.channel().isWritable());
|
||||||
|
Loading…
Reference in New Issue
Block a user