Fix typo Motivation:
MessageReciever should be MessageReceiver Modifications: Refactor MessageReciever to MessageReceiver Result: No more typo
This commit is contained in:
parent
79bc90be32
commit
6ee5341cdf
@ -60,9 +60,9 @@ import static org.mockito.Mockito.verify;
|
|||||||
public abstract class SSLEngineTest {
|
public abstract class SSLEngineTest {
|
||||||
|
|
||||||
@Mock
|
@Mock
|
||||||
protected MessageReciever serverReceiver;
|
protected MessageReceiver serverReceiver;
|
||||||
@Mock
|
@Mock
|
||||||
protected MessageReciever clientReceiver;
|
protected MessageReceiver clientReceiver;
|
||||||
|
|
||||||
protected Throwable serverException;
|
protected Throwable serverException;
|
||||||
protected Throwable clientException;
|
protected Throwable clientException;
|
||||||
@ -76,15 +76,15 @@ public abstract class SSLEngineTest {
|
|||||||
protected CountDownLatch serverLatch;
|
protected CountDownLatch serverLatch;
|
||||||
protected CountDownLatch clientLatch;
|
protected CountDownLatch clientLatch;
|
||||||
|
|
||||||
interface MessageReciever {
|
interface MessageReceiver {
|
||||||
void messageReceived(ByteBuf msg);
|
void messageReceived(ByteBuf msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static final class MessageDelegatorChannelHandler extends SimpleChannelInboundHandler<ByteBuf> {
|
protected static final class MessageDelegatorChannelHandler extends SimpleChannelInboundHandler<ByteBuf> {
|
||||||
private final MessageReciever receiver;
|
private final MessageReceiver receiver;
|
||||||
private final CountDownLatch latch;
|
private final CountDownLatch latch;
|
||||||
|
|
||||||
public MessageDelegatorChannelHandler(MessageReciever receiver, CountDownLatch latch) {
|
public MessageDelegatorChannelHandler(MessageReceiver receiver, CountDownLatch latch) {
|
||||||
super(false);
|
super(false);
|
||||||
this.receiver = receiver;
|
this.receiver = receiver;
|
||||||
this.latch = latch;
|
this.latch = latch;
|
||||||
@ -283,7 +283,7 @@ public abstract class SSLEngineTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void writeAndVerifyReceived(ByteBuf message, Channel sendChannel, CountDownLatch receiverLatch,
|
private static void writeAndVerifyReceived(ByteBuf message, Channel sendChannel, CountDownLatch receiverLatch,
|
||||||
MessageReciever receiver) throws Exception {
|
MessageReceiver receiver) throws Exception {
|
||||||
List<ByteBuf> dataCapture = null;
|
List<ByteBuf> dataCapture = null;
|
||||||
try {
|
try {
|
||||||
sendChannel.writeAndFlush(message);
|
sendChannel.writeAndFlush(message);
|
||||||
|
Loading…
Reference in New Issue
Block a user