Examples of ECARule


Examples of org.openiaml.model.model.ECARule

    assertEquals("requires a page is viewed first", gate.getName());

    Event event = button.getOnClick();
    assertGenerated(event);

    ECARule nav = assertHasNavigateAction(root, event, gate, "resume");
    assertGenerated(nav);

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    // set operation
    ActivityOperation set = assertHasActivityOperation(required, "Set gate flag");
    assertGenerated(set);

    // run wire
    ECARule run = assertHasRunAction(required, access, set);
    assertGenerated(run);

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    // get the operation
    Operation doLogin = assertHasOperation(loginSession, "do login");

    // get the run instance wire
    ECARule run = assertHasRunAction(login, button, doLogin, "onClick");

    // assert ActivityParameter wires
    Parameter pe = assertHasParameter(root, femail, run);
    assertGenerated(pe);
    assertEquals("email", pe.getName());
View Full Code Here

Examples of org.openiaml.model.model.ECARule

   * @return the wire edge found
   * @throws JaxenException
   */
  public static ECARule assertHasECARuleFromTo(EObject container, ActionEdgeSource from, Action to, Class<? extends ECARule> type, Filter<ECARule> filter) throws JaxenException {
    Set<ECARule> wires = getActionsFromTo(container, from, to);
    ECARule result = null;
    for (ECARule w : wires) {
      if (type.isInstance(w)) {
        if (filter == null || filter.accept(w)) {
          // found it
          if (result != null)
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    assertGenerated(onInput);

    Operation update = assertHasOperation(input, "update");
    assertGenerated(update);

    ECARule run = assertHasRunAction(root, onInput, update);
    assertGenerated(run);

    // currentInput as parameter
    Value currentInput = assertHasCurrentInput(input);
    assertGenerated(currentInput);
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Label target = assertHasLabel(home, "email");
    Operation update = assertHasOperation(target, "update");
    assertGenerated(update);

    ECARule run = assertHasRunAction(root, onClick, update);
    assertGenerated(run);

    // with the email as the parameter
    assertGenerated(assertHasParameter(root, email, run));
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Label target = assertHasLabel(home, "email");
    Operation update = assertHasOperation(target, "update");
    assertGenerated(update);

    ECARule run = assertHasRunAction(root, onClick, update);
    assertGenerated(run);

    // with the email as the parameter
    assertGenerated(assertHasParameter(root, email, run));
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    {
      Operation hide = assertHasBuiltinOperation(list, "hide");
      assertGenerated(hide);

      ECARule run = assertHasRunAction(root, onAccess, hide);
      assertGenerated(run);

      // only if the input is empty
      Function empty = input.getEmpty();
      assertGenerated(empty);

      assertGenerated(assertHasSimpleCondition(root, empty, run));
    }

    {
      Operation hide = assertHasBuiltinOperation(list, "show");
      assertGenerated(hide);

      ECARule run = assertHasRunAction(root, onAccess, hide);
      assertGenerated(run);

      // only if the input is not empty
      Function empty = input.getNotEmpty();
      assertGenerated(empty);
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Event onChange = input.getOnChange();

    // only if the input is empty
    {
      Operation hide = assertHasBuiltinOperation(list, "hide");
      ECARule run = assertHasRunAction(root, onChange, hide);
      Function empty = input.getEmpty();
      assertGenerated(assertHasSimpleCondition(root, empty, run));
    }

    // only if the input is not empty
    {
      Operation show = assertHasBuiltinOperation(list, "show");
      ECARule run = assertHasRunAction(root, onChange, show);
      Function notEmpty = input.getNotEmpty();
      assertGenerated(assertHasSimpleCondition(root, notEmpty, run));
    }

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    InputTextField input = assertHasInputTextField(containerForm, "Search by name");

    Operation update = assertHasOperation(input, "update");

    ECARule run = assertHasRunAction(root, onClick, update);
    assertGenerated(run);

    Value blank = assertHasValue(root, "blank");
    assertTrue(blank.isReadOnly());
    assertEqualType(blank.getType(), BuiltinDataTypes.getTypeString());
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.