@Test void resetsInvocationCounter() { final DlmsDevice device = new DlmsDeviceBuilder().withInvocationCounter(123L).build(); this.manager.resetInvocationCounter(device); assertThat(device.isInvocationCounterInitialized()).isFalse(); verify(this.deviceRepository).save(device); }
public void resetInvocationCounter(final DlmsDevice device) { device.setInvocationCounter(null); this.deviceRepository.save(device); }
InvocationCounterManager { public void resetInvocationCounter(final DlmsDevice device) { device.setInvocationCounter(null); this.deviceRepository.save(device); } }
InvocationCounterManager { public void resetInvocationCounter(final DlmsDevice device) { device.setInvocationCounter(null); this.deviceRepository.save(device); } @Autowired  InvocationCounterManager(final DlmsConnectionFactory connectionFactory, final DlmsHelper dlmsHelper,
            final DlmsDeviceRepository deviceRepository); }
InvocationCounterManager { public void resetInvocationCounter(final DlmsDevice device) { device.setInvocationCounter(null); this.deviceRepository.save(device); } @Autowired  InvocationCounterManager(final DlmsConnectionFactory connectionFactory, final DlmsHelper dlmsHelper,
            final DlmsDeviceRepository deviceRepository); void initializeInvocationCounter(final DlmsDevice device); void resetInvocationCounter(final DlmsDevice device); }
InvocationCounterManager { public void resetInvocationCounter(final DlmsDevice device) { device.setInvocationCounter(null); this.deviceRepository.save(device); } @Autowired  InvocationCounterManager(final DlmsConnectionFactory connectionFactory, final DlmsHelper dlmsHelper,
            final DlmsDeviceRepository deviceRepository); void initializeInvocationCounter(final DlmsDevice device); void resetInvocationCounter(final DlmsDevice device);  }