use of org.openhab.binding.modbus.internal.pooling.ModbusTCPSlaveEndpoint in project openhab1-addons by openhab.
the class ModbusSlaveEndpointTestCase method testEqualsDifferentTCPHost.
@Test
public void testEqualsDifferentTCPHost() {
ModbusTCPSlaveEndpoint e1 = new ModbusTCPSlaveEndpoint("127.0.0.1", 500);
ModbusTCPSlaveEndpoint e2 = new ModbusTCPSlaveEndpoint("127.0.0.2", 501);
Assert.assertNotEquals(e1, e2);
Assert.assertNotEquals(e1.hashCode(), e2.hashCode());
}
Aggregations