refac
This commit is contained in:
coderfengyun 2014-09-19 14:33:18 +08:00
parent 39ea7f7b10
commit 33d937b1e1
1 changed files with 5 additions and 5 deletions

View File

@ -84,10 +84,10 @@ public class Test_Behavior {
@Test @Test
public void testCompileIfBehavior2Instruction() { public void testCompileIfBehavior2Instruction() {
List<BehaviorModel> elseBehaviors = new ArrayList<BehaviorModel>(), thenBehaviors = new ArrayList<BehaviorModel>(); List<BehaviorModel> elseBehaviors = new ArrayList<BehaviorModel>(), thenBehaviors = new ArrayList<BehaviorModel>();
Behavior behavior = Behavior.buildWith(BehaviorModel // Behavior behavior =
.IfBehaviorBuilder(BehaviorModel.testBehaviorBuilder(1, // Behavior.buildWith(BehaviorModel.IfBehaviorBuilder(
"isDefined", "context", Arrays.asList(ParameterModel // BehaviorModel.testBehaviorBuilder(1, "isDefined", "context",
.createParameter("name", "a")))), // Arrays.asList(ParameterModel.createParameter("name",
thenBehaviors, elseBehaviors); // "a"))), thenBehaviors, elseBehaviors));
} }
} }