}
@Test
- public void testOnDeviceStateChanged_IsReachable() {
+ public void testOnDeviceStateChangedIsReachable() {
DeviceStateDTO deviceState = new DeviceStateDTO();
deviceState.setReachable(true);
}
@Test
- public void testOnDeviceStateChanged_IsNotReachable() {
+ public void testOnDeviceStateChangedIsNotReachable() {
DeviceStateDTO deviceState = new DeviceStateDTO();
deviceState.setReachable(false);
}
@Test
- public void testOnDeviceStateChanged_IsReachable_VariableActuator() {
+ public void testOnDeviceStateChangedIsReachableVariableActuator() {
DeviceStateDTO deviceState = new DeviceStateDTO();
deviceState.setReachable(true);
}
@Test
- public void testOnDeviceStateChanged_LowBattery() {
+ public void testOnDeviceStateChangedLowBattery() {
DeviceDTO device = createDevice();
device.setIsBatteryPowered(true);
device.setLowBattery(true);
}
@Test
- public void testOnDeviceStateChanged_NoLowBattery() {
+ public void testOnDeviceStateChangedNoLowBattery() {
DeviceDTO device = createDevice();
device.setIsBatteryPowered(true);
device.setLowBattery(false);
}
@Test
- public void testOnDeviceStateChanged_NotBatteryPowered() {
+ public void testOnDeviceStateChangedNotBatteryPowered() {
DeviceDTO device = createDevice();
device.setIsBatteryPowered(false);
}
@Test
- public void testOnDeviceStateChanged_VariableActuator_On() {
+ public void testOnDeviceStateChangedVariableActuatorOn() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_VARIABLEACTUATOR, c -> c.setVariableActuatorState(true), device);
}
@Test
- public void testOnDeviceStateChanged_VariableActuator_Off() {
+ public void testOnDeviceStateChangedVariableActuatorOff() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_VARIABLEACTUATOR, c -> c.setVariableActuatorState(false), device);
}
@Test
- public void testOnDeviceStateChanged_VariableActuator_EmptyState() {
+ public void testOnDeviceStateChangedVariableActuatorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_VARIABLEACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_TemperatureSensor_FrostWarning_On() {
+ public void testOnDeviceStateChangedTemperatureSensorFrostWarningOn() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TEMPERATURESENSOR, c -> {
c.setTemperatureSensorTemperatureState(21.5);
}
@Test
- public void testOnDeviceStateChanged_TemperatureSensor_FrostWarning_Off() {
+ public void testOnDeviceStateChangedTemperatureSensorFrostWarningOff() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TEMPERATURESENSOR, c -> {
c.setTemperatureSensorTemperatureState(21.5);
}
@Test
- public void testOnDeviceStateChanged_TemperatureSensor_EmptyState() {
+ public void testOnDeviceStateChangedTemperatureSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TEMPERATURESENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_ThermostatActuator_WindowReduction_On() {
+ public void testOnDeviceStateChangedThermostatActuatorWindowReductionOn() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_THERMOSTATACTUATOR, c -> {
c.setThermostatActuatorPointTemperatureState(21.5);
}
@Test
- public void testOnDeviceStateChanged_ThermostatActuator_WindowReduction_Off() {
+ public void testOnDeviceStateChangedThermostatActuatorWindowReductionOff() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_THERMOSTATACTUATOR, c -> {
c.setThermostatActuatorPointTemperatureState(21.5);
}
@Test
- public void testOnDeviceStateChanged_ThermostatActuator_EmptyState() {
+ public void testOnDeviceStateChangedThermostatActuatorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_THERMOSTATACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_HumiditySensor_MoldWarning_On() {
+ public void testOnDeviceStateChangedHumiditySensorMoldWarningOn() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_HUMIDITYSENSOR, c -> {
c.setHumiditySensorHumidityState(35.5);
}
@Test
- public void testOnDeviceStateChanged_HumiditySensor_MoldWarning_Off() {
+ public void testOnDeviceStateChangedHumiditySensorMoldWarningOff() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_HUMIDITYSENSOR, c -> {
c.setHumiditySensorHumidityState(35.5);
}
@Test
- public void testOnDeviceStateChanged_HumiditySensor_EmptyState() {
+ public void testOnDeviceStateChangedHumiditySensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_HUMIDITYSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_WindowDoorSensor_Open() {
+ public void testOnDeviceStateChangedWindowDoorSensorOpen() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_WINDOWDOORSENSOR, c -> c.setWindowDoorSensorState(true), device);
}
@Test
- public void testOnDeviceStateChanged_WindowDoorSensor_Closed() {
+ public void testOnDeviceStateChangedWindowDoorSensorClosed() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_WINDOWDOORSENSOR, c -> c.setWindowDoorSensorState(false), device);
}
@Test
- public void testOnDeviceStateChanged_WindowDoorSensor_EmptyState() {
+ public void testOnDeviceStateChangedWindowDoorSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_WINDOWDOORSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_SmokeDetectorSensor_On() {
+ public void testOnDeviceStateChangedSmokeDetectorSensorOn() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_SMOKEDETECTORSENSOR, c -> c.setSmokeDetectorSensorState(true), device);
}
@Test
- public void testOnDeviceStateChanged_SmokeDetectorSensor_Off() {
+ public void testOnDeviceStateChangedSmokeDetectorSensorOff() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_SMOKEDETECTORSENSOR, c -> c.setSmokeDetectorSensorState(false),
device);
}
@Test
- public void testOnDeviceStateChanged_SmokeDetectorSensor_EmptyState() {
+ public void testOnDeviceStateChangedSmokeDetectorSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_SMOKEDETECTORSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_AlarmActuator_On() {
+ public void testOnDeviceStateChangedAlarmActuatorOn() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ALARMACTUATOR, c -> c.setAlarmActuatorState(true), device);
}
@Test
- public void testOnDeviceStateChanged_AlarmActuator_Off() {
+ public void testOnDeviceStateChangedAlarmActuatorOff() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ALARMACTUATOR, c -> c.setAlarmActuatorState(false), device);
}
@Test
- public void testOnDeviceStateChanged_AlarmActuator_EmptyState() {
+ public void testOnDeviceStateChangedAlarmActuatorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ALARMACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_SwitchActuator_On() {
+ public void testOnDeviceStateChangedSwitchActuatorOn() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_SWITCHACTUATOR, c -> c.setSwitchActuatorState(true), device);
}
@Test
- public void testOnDeviceStateChanged_SwitchActuator_Off() {
+ public void testOnDeviceStateChangedSwitchActuatorOff() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_SWITCHACTUATOR, c -> c.setSwitchActuatorState(false), device);
}
@Test
- public void testOnDeviceStateChanged_SwitchActuator_EmptyState() {
+ public void testOnDeviceStateChangedSwitchActuatorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_SWITCHACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_DimmerActuator() {
+ public void testOnDeviceStateChangedDimmerActuator() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_DIMMERACTUATOR, c -> c.setDimmerActuatorState(50), device);
}
@Test
- public void testOnDeviceStateChanged_DimmerActuator_EmptyState() {
+ public void testOnDeviceStateChangedDimmerActuatorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_DIMMERACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_RollerShutterActuator() {
+ public void testOnDeviceStateChangedRollerShutterActuator() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ROLLERSHUTTERACTUATOR, c -> c.setRollerShutterActuatorState(40),
device);
}
@Test
- public void testOnDeviceStateChanged_RollerShutterActuator_Invert_True() {
+ public void testOnDeviceStateChangedRollerShutterActuatorInvertTrue() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ROLLERSHUTTERACTUATOR, c -> c.setRollerShutterActuatorState(40),
device);
}
@Test
- public void testOnDeviceStateChanged_RollerShutterActuator_Invert_False() {
+ public void testOnDeviceStateChangedRollerShutterActuatorInvertFalse() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ROLLERSHUTTERACTUATOR, c -> c.setRollerShutterActuatorState(40),
device);
}
@Test
- public void testOnDeviceStateChanged_RollerShutterActuator_EmptyState() {
+ public void testOnDeviceStateChangedRollerShutterActuatorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ROLLERSHUTTERACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_MotionDetectionSensor() {
+ public void testOnDeviceStateChangedMotionDetectionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_MOTIONDETECTIONSENSOR, c -> c.setMotionDetectionSensorState(50),
device);
}
@Test
- public void testOnDeviceStateChanged_MotionDetectionSensor_EmptyState() {
+ public void testOnDeviceStateChangedMotionDetectionSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_MOTIONDETECTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_LuminanceSensor() {
+ public void testOnDeviceStateChangedLuminanceSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_LUMINANCESENSOR, c -> c.setLuminanceSensorState(50.1), device);
}
@Test
- public void testOnDeviceStateChanged_LuminanceSensor_EmptyState() {
+ public void testOnDeviceStateChangedLuminanceSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_LUMINANCESENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_EnergyConsumptionSensor() {
+ public void testOnDeviceStateChangedEnergyConsumptionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ENERGYCONSUMPTIONSENSOR, c -> {
c.setEnergyConsumptionSensorEnergyConsumptionMonthKWhState(201.51);
}
@Test
- public void testOnDeviceStateChanged_EnergyConsumptionSensor_EmptyState() {
+ public void testOnDeviceStateChangedEnergyConsumptionSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ENERGYCONSUMPTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_PowerConsumptionSensor() {
+ public void testOnDeviceStateChangedPowerConsumptionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_POWERCONSUMPTIONSENSOR,
c -> c.setPowerConsumptionSensorPowerConsumptionWattState(350.5), device);
}
@Test
- public void testOnDeviceStateChanged_PowerConsumptionSensor_EmptyState() {
+ public void testOnDeviceStateChangedPowerConsumptionSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_POWERCONSUMPTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_GenerationMeterEnergySensor() {
+ public void testOnDeviceStateChangedGenerationMeterEnergySensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_GENERATIONMETERENERGYSENSOR, c -> {
c.setGenerationMeterEnergySensorEnergyPerMonthInKWhState(201.51);
}
@Test
- public void testOnDeviceStateChanged_GenerationMeterEnergySensor_EmptyState() {
+ public void testOnDeviceStateChangedGenerationMeterEnergySensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_GENERATIONMETERENERGYSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_GenerationMeterPowerConsumptionSensor() {
+ public void testOnDeviceStateChangedGenerationMeterPowerConsumptionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_GENERATIONMETERPOWERCONSUMPTIONSENSOR,
c -> c.setGenerationMeterPowerConsumptionSensorPowerInWattState(350.5), device);
}
@Test
- public void testOnDeviceStateChanged_GenerationMeterPowerConsumptionSensor_EmptyState() {
+ public void testOnDeviceStateChangedGenerationMeterPowerConsumptionSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_GENERATIONMETERPOWERCONSUMPTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_TwoWayMeterEnergyConsumptionSensor() {
+ public void testOnDeviceStateChangedTwoWayMeterEnergyConsumptionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TWOWAYMETERENERGYCONSUMPTIONSENSOR, c -> {
c.setTwoWayMeterEnergyConsumptionSensorEnergyPerMonthInKWhState(201.51);
}
@Test
- public void testOnDeviceStateChanged_TwoWayMeterEnergyConsumptionSensor_EmptyState() {
+ public void testOnDeviceStateChangedTwoWayMeterEnergyConsumptionSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TWOWAYMETERENERGYCONSUMPTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_TwoWayMeterEnergyFeedSensor() {
+ public void testOnDeviceStateChangedTwoWayMeterEnergyFeedSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TWOWAYMETERENERGYFEEDSENSOR, c -> {
c.setTwoWayMeterEnergyFeedSensorEnergyPerMonthInKWhState(201.51);
}
@Test
- public void testOnDeviceStateChanged_TwoWayMeterEnergyFeedSensor_EmptyState() {
+ public void testOnDeviceStateChangedTwoWayMeterEnergyFeedSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TWOWAYMETERENERGYFEEDSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_TwoWayMeterPowerConsumptionSensor() {
+ public void testOnDeviceStateChangedTwoWayMeterPowerConsumptionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TWOWAYMETERPOWERCONSUMPTIONSENSOR,
c -> c.setTwoWayMeterPowerConsumptionSensorPowerInWattState(350.5), device);
}
@Test
- public void testOnDeviceStateChanged_TwoWayMeterPowerConsumptionSensor_EmptyState() {
+ public void testOnDeviceStateChangedTwoWayMeterPowerConsumptionSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TWOWAYMETERPOWERCONSUMPTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_PushButtonSensor_Button1_ShortPress() {
+ public void testOnDeviceStateChangedPushButtonSensorButton1ShortPress() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_PUSHBUTTONSENSOR, c -> {
c.setPushButtonSensorCounterState(10);
}
@Test
- public void testOnDeviceStateChanged_PushButtonSensor_Button1_LongPress() {
+ public void testOnDeviceStateChangedPushButtonSensorButton1LongPress() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_PUSHBUTTONSENSOR, c -> {
c.setPushButtonSensorCounterState(10);
}
@Test
- public void testOnDeviceStateChanged_PushButtonSensor_Button2_ShortPress() {
+ public void testOnDeviceStateChangedPushButtonSensorButton2ShortPress() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_PUSHBUTTONSENSOR, c -> {
c.setPushButtonSensorCounterState(10);
}
@Test
- public void testOnDeviceStateChanged_PushButtonSensor_Button2_LongPress() {
+ public void testOnDeviceStateChangedPushButtonSensorButton2LongPress() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_PUSHBUTTONSENSOR, c -> {
c.setPushButtonSensorCounterState(10);
}
@Test
- public void testOnDeviceStateChanged_PushButtonSensor_EmptyState() {
+ public void testOnDeviceStateChangedPushButtonSensorEmptyState() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_PUSHBUTTONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_LinkedToDevice() {
+ public void testOnDeviceStateChangedEventLinkedToDevice() {
DeviceStateDTO deviceState = new DeviceStateDTO();
deviceState.setReachable(true);
}
@Test
- public void testOnDeviceStateChanged_Event_LinkedToCapability_WithoutState() {
+ public void testOnDeviceStateChangedEventLinkedToCapabilityWithoutState() {
DeviceDTO device = createDevice();
CapabilityConfigDTO capabilityConfig = new CapabilityConfigDTO();
}
@Test
- public void testOnDeviceStateChanged_Event_LinkedToCapability_WithoutStateAlsoAfterRefresh() {
+ public void testOnDeviceStateChangedEventLinkedToCapabilityWithoutStateAlsoAfterRefresh() {
DeviceDTO device = createDevice();
CapabilityConfigDTO capabilityConfig = new CapabilityConfigDTO();
}
@Test
- public void testOnDeviceStateChanged_Event_VariableActuator() {
+ public void testOnDeviceStateChangedEventVariableActuator() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_VARIABLEACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_SwitchActuator() {
+ public void testOnDeviceStateChangedEventSwitchActuator() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_SWITCHACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_DimmerActuator() {
+ public void testOnDeviceStateChangedEventDimmerActuator() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_DIMMERACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_RollerShutterActuator() {
+ public void testOnDeviceStateChangedEventRollerShutterActuator() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ROLLERSHUTTERACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_RollerShutter_PushButtonSensor() {
+ public void testOnDeviceStateChangedEventRollerShutterPushButtonSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ROLLERSHUTTERACTUATOR, null, device);
addCapabilityToDevice(CapabilityDTO.TYPE_PUSHBUTTONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_TemperatureSensor() {
+ public void testOnDeviceStateChangedEventTemperatureSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TEMPERATURESENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_ThermostatSensor() {
+ public void testOnDeviceStateChangedEventThermostatSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_THERMOSTATACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_HumiditySensor() {
+ public void testOnDeviceStateChangedEventHumiditySensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_HUMIDITYSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_WindowDoorSensor() {
+ public void testOnDeviceStateChangedEventWindowDoorSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_WINDOWDOORSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_SmokeDetectorSensor() {
+ public void testOnDeviceStateChangedEventSmokeDetectorSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_SMOKEDETECTORSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_AlarmActuator() {
+ public void testOnDeviceStateChangedEventAlarmActuator() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ALARMACTUATOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_MotionDetectionSensor() {
+ public void testOnDeviceStateChangedEventMotionDetectionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_MOTIONDETECTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_LuminanceSensor() {
+ public void testOnDeviceStateChangedEventLuminanceSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_LUMINANCESENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_PushButtonSensor_Button1_ShortPress() {
+ public void testOnDeviceStateChangedEventPushButtonSensorButton1ShortPress() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_PUSHBUTTONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_PushButtonSensor_Button1_LongPress() {
+ public void testOnDeviceStateChangedEventPushButtonSensorButton1LongPress() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_PUSHBUTTONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_StateChangedEvent_PushButtonSensor_SHC_Classic() {
+ public void testOnDeviceStateChangedStateChangedEventPushButtonSensorSHCClassic() {
when(bridgeHandlerMock.isSHCClassic()).thenReturn(true);
DeviceDTO device = createDevice();
}
@Test
- public void testOnDeviceStateChanged_StateChangedEvent_PushButtonSensor_SHCA() {
+ public void testOnDeviceStateChangedStateChangedEventPushButtonSensorSHCA() {
when(bridgeHandlerMock.isSHCClassic()).thenReturn(false);
DeviceDTO device = createDevice();
}
@Test
- public void testOnDeviceStateChanged_Event_EnergyConsumptionSensor() {
+ public void testOnDeviceStateChangedEventEnergyConsumptionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_ENERGYCONSUMPTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_PowerConsumptionSensor() {
+ public void testOnDeviceStateChangedEventPowerConsumptionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_POWERCONSUMPTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_GenerationMeterEnergySensor() {
+ public void testOnDeviceStateChangedEventGenerationMeterEnergySensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_GENERATIONMETERENERGYSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_GenerationMeterPowerConsumptionSensor() {
+ public void testOnDeviceStateChangedEventGenerationMeterPowerConsumptionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_GENERATIONMETERPOWERCONSUMPTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_TwoWayMeterEnergyConsumptionSensor() {
+ public void testOnDeviceStateChangedEventTwoWayMeterEnergyConsumptionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TWOWAYMETERENERGYCONSUMPTIONSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_TwoWayMeterEnergyFeedSensor() {
+ public void testOnDeviceStateChangedEventTwoWayMeterEnergyFeedSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TWOWAYMETERENERGYFEEDSENSOR, null, device);
}
@Test
- public void testOnDeviceStateChanged_Event_TwoWayMeterPowerConsumptionSensor() {
+ public void testOnDeviceStateChangedEventTwoWayMeterPowerConsumptionSensor() {
DeviceDTO device = createDevice();
addCapabilityToDevice(CapabilityDTO.TYPE_TWOWAYMETERPOWERCONSUMPTIONSENSOR, null, device);
}
@Test
- public void testHandleCommand_UnsupportedChannel() {
+ public void testHandleCommandUnsupportedChannel() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_CONTACT);
}
@Test
- public void testHandleCommand_CommandSwitchDevice_On() {
+ public void testHandleCommandCommandSwitchDeviceOn() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_SWITCH);
}
@Test
- public void testHandleCommand_CommandSwitchDevice_Off() {
+ public void testHandleCommandCommandSwitchDeviceOff() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_SWITCH);
}
@Test
- public void testHandleCommand_CommandSwitchAlarm_On() {
+ public void testHandleCommandCommandSwitchAlarmOn() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_ALARM);
}
@Test
- public void testHandleCommand_CommandSwitchAlarm_Off() {
+ public void testHandleCommandCommandSwitchAlarmOff() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_ALARM);
}
@Test
- public void testHandleCommand_CommandSetDimLevel_On() {
+ public void testHandleCommandCommandSetDimLevelOn() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_DIMMER);
}
@Test
- public void testHandleCommand_CommandSetDimLevel_Off() {
+ public void testHandleCommandCommandSetDimLevelOff() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_DIMMER);
}
@Test
- public void testHandleCommand_CommandSetDimLevel_DecimalType() {
+ public void testHandleCommandCommandSetDimLevelDecimalType() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_DIMMER);
}
@Test
- public void testHandleCommand_CommandSetOperationMode_Auto() {
+ public void testHandleCommandCommandSetOperationModeAuto() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_OPERATION_MODE);
}
@Test
- public void testHandleCommand_CommandSetOperationMode_Manual() {
+ public void testHandleCommandCommandSetOperationModeManual() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_OPERATION_MODE);
}
@Test
- public void testHandleCommand_CommandSetOperationMode_Unknown() {
+ public void testHandleCommandCommandSetOperationModeUnknown() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_OPERATION_MODE);
}
@Test
- public void testHandleCommand_CommandUpdatePointTemperature_QuantityType() {
+ public void testHandleCommandCommandUpdatePointTemperatureQuantityType() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_TARGET_TEMPERATURE);
}
@Test
- public void testHandleCommand_CommandUpdatePointTemperature_DecimalType() {
+ public void testHandleCommandCommandUpdatePointTemperatureDecimalType() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_TARGET_TEMPERATURE);
}
@Test
- public void testHandleCommand_CommandUpdatePointTemperature_MinTemperature() {
+ public void testHandleCommandCommandUpdatePointTemperatureMinTemperature() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_TARGET_TEMPERATURE);
}
@Test
- public void testHandleCommand_CommandUpdatePointTemperature_MaxTemperature() {
+ public void testHandleCommandCommandUpdatePointTemperatureMaxTemperature() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_TARGET_TEMPERATURE);
}
@Test
- public void testHandleCommand_CommandRollerShutter_Up() {
+ public void testHandleCommandCommandRollerShutterUp() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_ROLLERSHUTTER);
}
@Test
- public void testHandleCommand_CommandRollerShutter_Down() {
+ public void testHandleCommandCommandRollerShutterDown() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_ROLLERSHUTTER);
}
@Test
- public void testHandleCommand_CommandRollerShutter_On() {
+ public void testHandleCommandCommandRollerShutterOn() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_ROLLERSHUTTER);
}
@Test
- public void testHandleCommand_CommandRollerShutter_Off() {
+ public void testHandleCommandCommandRollerShutterOff() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_ROLLERSHUTTER);
}
@Test
- public void testHandleCommand_CommandRollerShutter_Stop() {
+ public void testHandleCommandCommandRollerShutterStop() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_ROLLERSHUTTER);
}
@Test
- public void testHandleCommand_CommandRollerShutter_DecimalType() {
+ public void testHandleCommandCommandRollerShutterDecimalType() {
DeviceDTO device = createDevice();
ChannelUID channelMock = createChannel(CHANNEL_ROLLERSHUTTER);
}
@Test
- public void testHandleCommand_CommandRollerShutter_DecimalType_Inverted() {
+ public void testHandleCommandCommandRollerShutterDecimalTypeInverted() {
DeviceDTO device = createDevice();
Channel rollerShutterChannelMock = createRollerShutterChannelMock(true);
}
@Test
- public void testHandleCommand_CommandRollerShutter_DecimalType_NotInverted() {
+ public void testHandleCommandCommandRollerShutterDecimalTypeNotInverted() {
DeviceDTO device = createDevice();
Channel rollerShutterChannelMock = createRollerShutterChannelMock(false);
@Override
public boolean equals(@Nullable Object o) {
- if (this == o)
+ if (this == o) {
return true;
- if (o == null || getClass() != o.getClass())
+ }
+ if (o == null || getClass() != o.getClass()) {
return false;
+ }
TriggeredEvent that = (TriggeredEvent) o;
return channelUID.equals(that.channelUID) && triggerValue.equals(that.triggerValue);
}