Examples of ECARule


Examples of org.openiaml.model.model.ECARule

    Button previous = assertHasButton(form, "Previous");

    Event onClick = previous.getOnClick();
    assertGenerated(onClick);

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

    assertGenerated(assertHasSimpleCondition(root, hasPrevious, run));

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Button first = assertHasButton(form, "First");

    Event onClick = first.getOnClick();
    assertGenerated(onClick);

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

    assertGenerated(assertHasSimpleCondition(root, notEmpty, run));

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Button last = assertHasButton(form, "Last");

    Event onClick = last.getOnClick();
    assertGenerated(onClick);

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

    assertGenerated(assertHasSimpleCondition(root, notEmpty, run));

    // has a parameter: the position to jump to
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Event onClick = last.getOnClick();

    ActivityOperation op = assertHasActivityOperation(last, "update target");
    assertGenerated(op);

    ECARule update = assertHasRunAction(root, onClick, op);

    // it must have a higher priority than the action to the instance
    ECARule run = assertHasRunAction(root, onClick, ijump);
    assertGreater(run.getPriority(), update.getPriority());

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    // onChange updates the Label
    Event onChange = instance.getOnChange();
    Operation update = assertHasOperation(labelResults, "update");

    ECARule run = assertHasRunAction(root, onChange, update);

    // with the given parameter
    assertGenerated(assertHasParameter(root, results, run));

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    assertGenerated(onChange);

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

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

    Value a1value = assertHasFieldValue(a1);
    assertGenerated(a1value);
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    // check permissions operation contained in the session, not the page
    ActivityOperation pageOp = assertHasActivityOperation(target, "permissions check");
    assertGenerated(pageOp);

    // connected
    ECARule run = assertHasECARule(target, event, pageOp, "run");
    assertGenerated(run);

    // a failure wire connecting the op to the login page
    Session loginSession = assertHasSession(root, "role-based login handler for target session login");
    Frame login = assertHasFrame(loginSession, "login");
    ECARule fail = assertHasECARule(root, pageOp, login, "fail");
    assertGenerated(fail);

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    // access event
    Event event = target.getOnAccess();
    assertGenerated(event);

    // connected
    ECARule run = assertHasECARule(target, event, check, "run");
    assertGenerated(run);

    // a failure wire connecting the op to the login page
    Session loginSession = assertHasSession(root, "role-based login handler for target session login");
    Frame login = assertHasFrame(loginSession, "login");
    ECARule fail = assertHasECARule(root, check, login, "fail");
    assertGenerated(fail);

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    assertGenerated(end);
    CancelNode cancel = assertHasCancelNode(op);
    assertGenerated(cancel);
    OperationCallNode virtualOp = assertHasOperationCallNode(op, "call permissions operation");
    assertGenerated(virtualOp);
    ECARule virtualRun = assertHasECARule(op, virtualOp, targetOp, "run");
    assertGenerated(virtualRun);

    // execution edges between all the operations
    assertGenerated(assertHasExecutionEdge(op, start, virtualOp));
    assertGenerated(assertHasExecutionEdge(op, virtualOp, end));
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Operation targetOp = assertHasOperation(target, "update");
    assertNotSame(srcEdit, targetEdit);
    assertNotSame(srcOp, targetOp);

    // there should be a run wire between these two
    ECARule srcRw = assertHasRunAction(wire, srcEdit, targetOp);
    ECARule targetRw = assertHasRunAction(wire, targetEdit, srcOp);

    // [new]
    // there should be additional ConditionWires to these RunActions
    assertGenerated(assertHasSimpleCondition(page, cond, srcRw));
    assertGenerated(assertHasSimpleCondition(page, cond, targetRw));
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.