Search in sources :

Example 1 with CloseConnectionEvent

use of com.faforever.server.client.CloseConnectionEvent in project faf-java-server by FAForever.

the class LegacyAdapterConfigTest method onCloseConnection.

@Test
public void onCloseConnection() throws Exception {
    ClientConnection clientConnection = new ClientConnection("1", Protocol.V1_LEGACY_UTF_16, mock(InetAddress.class));
    instance.onCloseConnection(new CloseConnectionEvent(this, clientConnection));
// Not much to assert here
}
Also used : CloseConnectionEvent(com.faforever.server.client.CloseConnectionEvent) ClientConnection(com.faforever.server.client.ClientConnection) InetAddress(java.net.InetAddress) Test(org.junit.Test)

Aggregations

ClientConnection (com.faforever.server.client.ClientConnection)1 CloseConnectionEvent (com.faforever.server.client.CloseConnectionEvent)1 InetAddress (java.net.InetAddress)1 Test (org.junit.Test)1