Package org.openiaml.model.model.components

Examples of org.openiaml.model.model.components.Gate


    assertNotGenerated(session);

    Frame required = assertHasFrame(root, "Required Page");
    assertNotGenerated(required);

    Gate gate = session.getEntryGate();
    assertEquals("requires a page is viewed first", gate.getName());
    assertNotGenerated(gate);

    ECARule nav = assertHasNavigateAction(session, gate, required, "first");
    assertNotGenerated(nav);
View Full Code Here


    Button button = assertHasButton(required, "Continue");
    assertGenerated(button);

    Session session = assertHasSession(root, "Session");
    Gate gate = session.getEntryGate();
    assertEquals("requires a page is viewed first", gate.getName());

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

    ECARule nav = assertHasNavigateAction(root, event, gate, "resume");
View Full Code Here

   */
  public void testConditionWire() throws Exception {
    root = loadAndInfer(GateRequiredPage.class);

    Session session = assertHasSession(root, "Session");
    Gate gate = session.getEntryGate();
    assertEquals("requires a page is viewed first", gate.getName());

    // generated condition
    ActivityPredicate condition = assertHasActivityPredicate(session, "check requires a page is viewed first");
    assertGenerated(condition);

View Full Code Here

    assertNotGenerated(page2);

    Frame ad = assertHasFrame(session, "Advertisement");
    assertNotGenerated(ad);

    Gate gate = session.getExitGate();
    assertEquals("View Ads Exit Gate", gate.getName());
    assertNotGenerated(gate);

    ECARule nav = assertHasNavigateAction(session, gate, ad, "last");
    assertNotGenerated(nav);
View Full Code Here

  public void testAdPageHasContinueButton() throws Exception {
    root = loadAndInfer(ExitGateAdSimple.class);

    Session session = assertHasSession(root, "Advertising Session");
    Frame ad = assertHasFrame(session, "Advertisement");
    Gate gate = session.getExitGate();
    assertEquals("View Ads Exit Gate", gate.getName());

    Button button = assertHasButton(ad, "Continue");
    assertGenerated(button);

    Event event = button.getOnClick();
View Full Code Here

   */
  public void testConditionWire() throws Exception {
    root = loadAndInfer(ExitGateAdSimple.class);

    Session session = assertHasSession(root, "Advertising Session");
    Gate gate = session.getExitGate();
    assertEquals("View Ads Exit Gate", gate.getName());

    // generated condition
    ActivityPredicate condition = assertHasActivityPredicate(session, "check View Ads Exit Gate");
    assertGenerated(condition);

View Full Code Here

    assertNotGenerated(openid);

    Frame secure = assertHasFrame(session, "Secure Page");
    assertNotGenerated(secure);

    Gate gate = session.getEntryGate();
    assertEquals("Entry Gate", gate.getName());
    assertNotGenerated(gate);

    assertNotGenerated(assertHasRequiresEdge(root, gate, openid));

    Label viewLabel = assertHasLabel(see, "your current ID");
View Full Code Here

    Session container = assertHasSession(root, "Containing Session");
    Session session = assertHasSession(container, "Protected Session");
    Frame see = assertHasFrame(session, "See Your OpenID");
    Label openid = assertHasLabel(see, "Current OpenID");
    Gate gate = session.getEntryGate();
    assertEquals("Entry Gate", gate.getName());

    Frame enter = assertHasFrame(container, "Provide Current OpenID");
    assertGenerated(enter);

    // it has one text field
View Full Code Here

    Session container = assertHasSession(root, "Containing Session");
    Session session = assertHasSession(container, "Protected Session");
    Frame see = assertHasFrame(session, "See Your OpenID");
    Label openid = assertHasLabel(see, "Current OpenID");
    Gate gate = session.getEntryGate();
    assertEquals("Entry Gate", gate.getName());

    // a Function is set within the openid label, "fieldValue is set"
    Function cond = assertHasFunction(openid, "fieldValue is set");
    assertGenerated(cond);
View Full Code Here

   */
  public void testProvidePageHasContinueButton() throws Exception {

    Session container = assertHasSession(root, "Containing Session");
    Session session = assertHasSession(container, "Protected Session");
    Gate gate = session.getEntryGate();
    assertEquals("Entry Gate", gate.getName());

    Frame enter = assertHasFrame(container, "Provide Current OpenID");

    // there's a Button named 'resume'
    Button button = assertHasButton(enter, "Continue");
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.components.Gate

Copyright © 2018 www.massapicom. 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.