test: Fix master branch test configs and add comprehensive tests for Badge Device Dispatch and Signal Loss logic

This commit is contained in:
lzh
2026-01-23 14:29:46 +08:00
parent bb1ee0be1d
commit 382e4d6ae2
3 changed files with 261 additions and 244 deletions

View File

@@ -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();