feat():行数据测试
parent
a9ce449fff
commit
d6b79ed724
|
@ -136,15 +136,16 @@ public class RuleVersionServiceImpl
|
||||||
Class<?> clazz = classResult.getData();
|
Class<?> clazz = classResult.getData();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
Object instance = clazz.getDeclaredConstructor().newInstance();
|
Object instance = clazz.getDeclaredConstructor().newInstance();
|
||||||
System.out.println(1);
|
|
||||||
engineRecordMap.put(dataRecord.getRuleVersionType(), (BasicEngine<DataValue[]>) instance);
|
engineRecordMap.put(dataRecord.getRuleVersionType(), (BasicEngine<DataValue[]>) instance);
|
||||||
System.out.println(2);
|
|
||||||
} catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
|
} catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
System.out.println(1);
|
||||||
DataValue[] dataValues = new DataValue[3];
|
DataValue[] dataValues = new DataValue[3];
|
||||||
|
System.out.println(2);
|
||||||
dataValues[0].setKey("id");
|
dataValues[0].setKey("id");
|
||||||
dataValues[0].setType("bigint");
|
dataValues[0].setType("bigint");
|
||||||
dataValues[0].setLabel("主键ID");
|
dataValues[0].setLabel("主键ID");
|
||||||
|
@ -157,7 +158,9 @@ public class RuleVersionServiceImpl
|
||||||
dataValues[2].setType("int");
|
dataValues[2].setType("int");
|
||||||
dataValues[2].setLabel("年龄");
|
dataValues[2].setLabel("年龄");
|
||||||
dataValues[2].setValue("20");
|
dataValues[2].setValue("20");
|
||||||
|
System.out.println(1);
|
||||||
dataRecord.setDataValues(dataValues);
|
dataRecord.setDataValues(dataValues);
|
||||||
|
System.out.println(2);
|
||||||
System.out.println(1);
|
System.out.println(1);
|
||||||
System.out.println("测试数据"+dataRecord);
|
System.out.println("测试数据"+dataRecord);
|
||||||
log.info("测试数据:[{}]",dataRecord.getDataValues());
|
log.info("测试数据:[{}]",dataRecord.getDataValues());
|
||||||
|
|
Loading…
Reference in New Issue