Search in sources :

Example 1 with ExitTelnetHandler

use of org.apache.dubbo.remoting.telnet.support.command.ExitTelnetHandler in project dubbo by alibaba.

the class ExitTelnetHandlerTest method test.

@Test
public void test() {
    Channel channel = Mockito.mock(Channel.class);
    ExitTelnetHandler exitTelnetHandler = new ExitTelnetHandler();
    exitTelnetHandler.telnet(channel, null);
    verify(channel, times(1)).close();
}
Also used : Channel(org.apache.dubbo.remoting.Channel) ExitTelnetHandler(org.apache.dubbo.remoting.telnet.support.command.ExitTelnetHandler) Test(org.junit.jupiter.api.Test)

Aggregations

Channel (org.apache.dubbo.remoting.Channel)1 ExitTelnetHandler (org.apache.dubbo.remoting.telnet.support.command.ExitTelnetHandler)1 Test (org.junit.jupiter.api.Test)1