@Test public void testBitPositions() { assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.CLOCK_INVALID)).isEqualTo(0); assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.PROGRAM_MEMORY_ERROR)).isEqualTo(8); assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.WATCHDOG_ERROR)).isEqualTo(12); assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.COMMUNICATION_ERROR_M_BUS_CHANNEL_1)) .isEqualTo(16); assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.FRAUD_ATTEMPT_M_BUS_CHANNEL_1)) .isEqualTo(20); assertThat((int) this.alarmHelperService.toBitPosition(AlarmTypeDto.NEW_M_BUS_DEVICE_DISCOVERED_CHANNEL_1)) .isEqualTo(24); }
public Integer toBitPosition(final AlarmTypeDto alarmType) { return BYTE_REGISTER_CONVERTER.toBitPosition(alarmType); }
AlarmHelperService { public Integer toBitPosition(final AlarmTypeDto alarmType) { return BYTE_REGISTER_CONVERTER.toBitPosition(alarmType); } }
AlarmHelperService { public Integer toBitPosition(final AlarmTypeDto alarmType) { return BYTE_REGISTER_CONVERTER.toBitPosition(alarmType); }  }
AlarmHelperService { public Integer toBitPosition(final AlarmTypeDto alarmType) { return BYTE_REGISTER_CONVERTER.toBitPosition(alarmType); }  Map<AlarmTypeDto, Integer> getAlarmRegisterBitIndexPerAlarmType(); Integer toBitPosition(final AlarmTypeDto alarmType); Set<AlarmTypeDto> toAlarmTypes(final Number registerValue); Long toLongValue(final Set<AlarmTypeDto> alarmTypes); }
AlarmHelperService { public Integer toBitPosition(final AlarmTypeDto alarmType) { return BYTE_REGISTER_CONVERTER.toBitPosition(alarmType); }  Map<AlarmTypeDto, Integer> getAlarmRegisterBitIndexPerAlarmType(); Integer toBitPosition(final AlarmTypeDto alarmType); Set<AlarmTypeDto> toAlarmTypes(final Number registerValue); Long toLongValue(final Set<AlarmTypeDto> alarmTypes);  }