Examples of GitRule


Examples of com.google.apps.easyconnect.easyrp.client.basic.logic.GitRule

  public void testAppendToRuleList() {
    List<GitRule> rules = Lists.newArrayList();
    node.appendToRuleList(rules, "pId", "pValue");
    Assert.assertEquals(1, rules.size());
    GitRule rule = rules.get(0);
    Assert.assertNotNull(rule);
    Assert.assertTrue(rule.getActionMethodNames() == null
        || rule.getActionMethodNames().length == 0);
    Assert.assertEquals("start", rule.getId());
    Assert.assertEquals("pId", rule.getParentId());
    Assert.assertEquals("pValue", rule.getParentValue());
    Assert.assertEquals("decision1", rule.getEvaluatorMethodName());
  }
View Full Code Here

Examples of com.google.apps.easyconnect.easyrp.client.basic.logic.GitRule

  public void testAppendToRuleList() {
    node.addActions(new String[] { "action1", "action3" });
    List<GitRule> rules = Lists.newArrayList();
    node.appendToRuleList(rules, "pId", "pValue");
    Assert.assertEquals(1, rules.size());
    GitRule rule = rules.get(0);
    Assert.assertNotNull(rule);
    Assert.assertTrue(Strings.isNullOrEmpty(rule.getEvaluatorMethodName()));
    Assert.assertEquals("testId", rule.getId());
    Assert.assertEquals("pId", rule.getParentId());
    Assert.assertEquals("pValue", rule.getParentValue());
    Assert.assertEquals(2, rule.getActionMethodNames().length);
    Assert.assertEquals("action1", rule.getActionMethodNames()[0]);
    Assert.assertEquals("action3", rule.getActionMethodNames()[1]);
  }
View Full Code Here

Examples of com.google.apps.easyconnect.easyrp.client.basic.logic.GitRule

    findChild(request).execute(request);
  }

  @Override
  public void appendToRuleList(List<GitRule> rules, String parentId, String parentValue) {
    rules.add(new GitRule(getId(), parentId, parentValue, false, this.evaluator.getName(), null));
    Iterator<String> it = this.children.keySet().iterator();
    while (it.hasNext()) {
      String key = it.next();
      children.get(key).appendToRuleList(rules, getId(), key);
    }
View Full Code Here

Examples of com.google.apps.easyconnect.easyrp.client.basic.logic.GitRule

  @Override
  public void appendToRuleList(List<GitRule> rules, String parentId, String parentValue) {
    String[] actionNames = new String[actions.size()];
    rules
        .add(new GitRule(getId(), parentId, parentValue, true, null, actions.toArray(actionNames)));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.