test: Fix master branch test configs and add comprehensive tests for Badge Device Dispatch and Signal Loss logic
This commit is contained in:
@@ -93,6 +93,7 @@ class SignalLossRuleProcessorTest {
|
||||
wrapper.setDeviceKey(DEVICE_KEY);
|
||||
|
||||
when(configService.getConfigWrapperByDeviceId(DEVICE_ID)).thenReturn(wrapper);
|
||||
when(configService.getConfigByAreaIdAndRelationType(AREA_ID, "BEACON")).thenReturn(wrapper);
|
||||
|
||||
// Execute
|
||||
processor.checkLossTimeout();
|
||||
@@ -143,6 +144,7 @@ class SignalLossRuleProcessorTest {
|
||||
wrapper.setDeviceKey(DEVICE_KEY);
|
||||
|
||||
when(configService.getConfigWrapperByDeviceId(DEVICE_ID)).thenReturn(wrapper);
|
||||
when(configService.getConfigByAreaIdAndRelationType(AREA_ID, "BEACON")).thenReturn(wrapper);
|
||||
|
||||
// Execute
|
||||
processor.checkLossTimeout();
|
||||
|
||||
Reference in New Issue
Block a user