Search in sources :

Example 1 with ModbusUDPSlaveEndpoint

use of org.openhab.binding.modbus.internal.pooling.ModbusUDPSlaveEndpoint in project openhab1-addons by openhab.

the class ModbusSlaveEndpointTestCase method testEqualsDifferentProtocol.

@Test
public void testEqualsDifferentProtocol() {
    ModbusTCPSlaveEndpoint e1 = new ModbusTCPSlaveEndpoint("127.0.0.1", 500);
    ModbusUDPSlaveEndpoint e2 = new ModbusUDPSlaveEndpoint("127.0.0.1", 500);
    Assert.assertNotEquals(e1, e2);
    Assert.assertNotEquals(e1.hashCode(), e2.hashCode());
}
Also used : ModbusUDPSlaveEndpoint(org.openhab.binding.modbus.internal.pooling.ModbusUDPSlaveEndpoint) ModbusTCPSlaveEndpoint(org.openhab.binding.modbus.internal.pooling.ModbusTCPSlaveEndpoint) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ModbusTCPSlaveEndpoint (org.openhab.binding.modbus.internal.pooling.ModbusTCPSlaveEndpoint)1 ModbusUDPSlaveEndpoint (org.openhab.binding.modbus.internal.pooling.ModbusUDPSlaveEndpoint)1