litte refactor

This commit is contained in:
coderfengyun 2013-12-19 16:51:24 +08:00
parent 7f83159262
commit 7354d502b6
1 changed files with 1 additions and 2 deletions

View File

@ -119,7 +119,6 @@ public class Bench4qTestScriptAdapter implements IScriptAdapter {
batchBehavior.setParentId(-1);
batchBehavior.setChildId(-1);
List<BehaviorBaseModel> behaviors = new ArrayList<BehaviorBaseModel>();
// behaviors.add(model);
batchBehavior.setBehaviors(behaviors);
return batchBehavior;
}
@ -194,7 +193,7 @@ public class Bench4qTestScriptAdapter implements IScriptAdapter {
}
public void setText(String text) {
if (text.isEmpty()) {
if (text == null || text.isEmpty()) {
this.setRunScenarioModel(new RunScenarioModelNew());
return;
}