Search in sources :

Example 11 with Link

use of com.cloud.utils.nio.Link in project cosmic by MissionCriticalCloud.

the class ConnectedAgentAttacheTest method testEqualsFalseNull.

@Test
public void testEqualsFalseNull() throws Exception {
    final Link link = mock(Link.class);
    final ConnectedAgentAttache agentAttache1 = new ConnectedAgentAttache(null, 0, null, link, false);
    assertFalse(agentAttache1.equals(null));
}
Also used : Link(com.cloud.utils.nio.Link) Test(org.junit.Test)

Aggregations

Link (com.cloud.utils.nio.Link)11 Test (org.junit.Test)10 AgentControlAnswer (com.cloud.agent.api.AgentControlAnswer)1 AgentControlCommand (com.cloud.agent.api.AgentControlCommand)1 Answer (com.cloud.agent.api.Answer)1 Command (com.cloud.agent.api.Command)1 CronCommand (com.cloud.agent.api.CronCommand)1 MaintainAnswer (com.cloud.agent.api.MaintainAnswer)1 MaintainCommand (com.cloud.agent.api.MaintainCommand)1 ModifySshKeysCommand (com.cloud.agent.api.ModifySshKeysCommand)1 PingCommand (com.cloud.agent.api.PingCommand)1 ShutdownCommand (com.cloud.agent.api.ShutdownCommand)1 StartupAnswer (com.cloud.agent.api.StartupAnswer)1 StartupCommand (com.cloud.agent.api.StartupCommand)1 UpgradeAnswer (com.cloud.agent.api.UpgradeAnswer)1 UpgradeCommand (com.cloud.agent.api.UpgradeCommand)1 Request (com.cloud.agent.transport.Request)1 Response (com.cloud.agent.transport.Response)1 ClosedChannelException (java.nio.channels.ClosedChannelException)1