test: 更新测试数据以适配配置模型变更
- SignalLossRuleProcessorTest: 更新测试用例 - area_device_relation_full_config.sql: 移除buttonEvent配置 - badge_device_dispatch_test_data.sql: 更新测试数据 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -87,12 +87,11 @@ class SignalLossRuleProcessorTest {
|
||||
CleanOrderIntegrationConfig mainConfig = new CleanOrderIntegrationConfig();
|
||||
mainConfig.setBeaconPresence(bpConfig);
|
||||
|
||||
CleanOrderIntegrationConfigService.AreaDeviceConfigWrapper wrapper =
|
||||
CleanOrderIntegrationConfigService.AreaDeviceConfigWrapper wrapper =
|
||||
new CleanOrderIntegrationConfigService.AreaDeviceConfigWrapper();
|
||||
wrapper.setConfig(mainConfig);
|
||||
wrapper.setDeviceKey(DEVICE_KEY);
|
||||
|
||||
when(configService.getConfigWrapperByDeviceId(DEVICE_ID)).thenReturn(wrapper);
|
||||
|
||||
when(configService.getConfigByAreaIdAndRelationType(AREA_ID, "BEACON")).thenReturn(wrapper);
|
||||
|
||||
// Execute
|
||||
@@ -138,12 +137,11 @@ class SignalLossRuleProcessorTest {
|
||||
CleanOrderIntegrationConfig mainConfig = new CleanOrderIntegrationConfig();
|
||||
mainConfig.setBeaconPresence(bpConfig);
|
||||
|
||||
CleanOrderIntegrationConfigService.AreaDeviceConfigWrapper wrapper =
|
||||
CleanOrderIntegrationConfigService.AreaDeviceConfigWrapper wrapper =
|
||||
new CleanOrderIntegrationConfigService.AreaDeviceConfigWrapper();
|
||||
wrapper.setConfig(mainConfig);
|
||||
wrapper.setDeviceKey(DEVICE_KEY);
|
||||
|
||||
when(configService.getConfigWrapperByDeviceId(DEVICE_ID)).thenReturn(wrapper);
|
||||
|
||||
when(configService.getConfigByAreaIdAndRelationType(AREA_ID, "BEACON")).thenReturn(wrapper);
|
||||
|
||||
// Execute
|
||||
|
||||
Reference in New Issue
Block a user