reactor:【IoT 物联网】增加 IotDataRuleDO 的定义,对标阿里云 IoT 的「云产品流转」
This commit is contained in:
@@ -3,7 +3,7 @@ package cn.iocoder.yudao.module.iot.service.rule.action.databridge;
|
||||
import cn.iocoder.yudao.framework.test.core.ut.BaseMockitoUnitTest;
|
||||
import cn.iocoder.yudao.module.iot.controller.admin.rule.vo.databridge.config.*;
|
||||
import cn.iocoder.yudao.module.iot.core.mq.message.IotDeviceMessage;
|
||||
import cn.iocoder.yudao.module.iot.dal.dataobject.rule.IotDataBridgeDO;
|
||||
import cn.iocoder.yudao.module.iot.dal.dataobject.rule.IotDataRuleSinkDO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
@@ -129,7 +129,7 @@ public class IotDataBridgeExecuteTest extends BaseMockitoUnitTest {
|
||||
|
||||
// 3. 执行测试
|
||||
log.info("[testHttpDataBridge][执行HTTP数据桥接测试]");
|
||||
httpDataBridgeExecute.execute(message, new IotDataBridgeDO()
|
||||
httpDataBridgeExecute.execute(message, new IotDataRuleSinkDO()
|
||||
.setType(httpDataBridgeExecute.getType()).setConfig(config));
|
||||
}
|
||||
|
||||
@@ -144,10 +144,10 @@ public class IotDataBridgeExecuteTest extends BaseMockitoUnitTest {
|
||||
private void executeAndVerifyCache(IotDataBridgeExecute<?> action, IotDataBridgeAbstractConfig config, String type)
|
||||
throws Exception {
|
||||
log.info("[test{}DataBridge][第一次执行,应该会创建新的 producer]", type);
|
||||
action.execute(message, new IotDataBridgeDO().setType(action.getType()).setConfig(config));
|
||||
action.execute(message, new IotDataRuleSinkDO().setType(action.getType()).setConfig(config));
|
||||
|
||||
log.info("[test{}DataBridge][第二次执行,应该会复用缓存的 producer]", type);
|
||||
action.execute(message, new IotDataBridgeDO().setType(action.getType()).setConfig(config));
|
||||
action.execute(message, new IotDataRuleSinkDO().setType(action.getType()).setConfig(config));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user