parent
e613738fa8
commit
d33e8552c5
|
@ -74,9 +74,15 @@ public class Test_MongoDBPlugin extends TestBase {
|
|||
|
||||
batch.getBehaviors().add(
|
||||
BehaviorModel.UserBehaviorBuilder(0, "Insert", pluginId, Arrays
|
||||
.asList(ParameterModel.createParameter("key", "key2"),
|
||||
ParameterModel.createParameter("value",
|
||||
"value2"))));
|
||||
.asList(ParameterModel.createParameter("id",
|
||||
this.testId.toString()), ParameterModel
|
||||
.createParameter("value", "value2"))));
|
||||
batch.getBehaviors().add(
|
||||
BehaviorModel.UserBehaviorBuilder(1, "Query", pluginId, Arrays
|
||||
.asList(ParameterModel.createParameter(
|
||||
"properties",
|
||||
"propertyName=_id|propertyValue="
|
||||
+ this.testId.toString() + "|;"))));
|
||||
String scriptContent = MarshalHelper.tryMarshal(scenarioModel);
|
||||
System.out.println(scriptContent);
|
||||
File targetFile = new File("Scripts"
|
||||
|
|
Loading…
Reference in New Issue