Package org.openiaml.model.model.scopes

Examples of org.openiaml.model.model.scopes.Session


    }
    return containingSession(e.eContainer());
  }

  public boolean containingSessionEquals(EObject e, Session s) {
    Session actual = containingSession(e);
    return s.equals(actual);
  }
View Full Code Here


    setGeneratedBy(page, by);
    return page;
  }

  public Session generatedSession(GeneratesElements by, Scope container) throws InferenceException {
    Session session = (Session) createElement( container, ScopesPackage.eINSTANCE.getSession(), ModelPackage.eINSTANCE.getScope_Scopes() );
    setGeneratedBy(session, by);
    return session;
  }
View Full Code Here

    for (Object o : root.getDiagramEditPart().getChildren()) {
      if (o instanceof ShapeNodeEditPart) {
        ShapeNodeEditPart s = (ShapeNodeEditPart) o;
        EObject obj = s.resolveSemanticElement();
        if (obj instanceof Session) {
          Session p = (Session) obj;
          if (p.getName() != null && p.getName().equals(sessionName)) {
            assertNotNull(s);
            return s;
          }
        }
      }
View Full Code Here

   * @throws Exception
   */
  public void testNoSetWireBetweenProperties() throws Exception {
    root = loadAndInfer(UserModifyRoles2.class);

    Session session = assertHasSession(root, "target session");

    // get the keys in the session
    Value email = assertHasValue(session, "current email");
    Value password = assertHasValue(session, "current password");

    // get the keys in the input form
    Session loginSession = assertHasSession(root, "current user login");
    Frame login = assertHasFrame(loginSession, "login");
    InputForm form = assertHasInputForm(login, "login form");
    InputTextField temail = assertHasInputTextField(form, "email");
    InputTextField tpass = assertHasInputTextField(form, "password");

View Full Code Here

   * @throws Exception
   */
  public void testContentsOfDoLogoutOperation() throws Exception {
    root = loadAndInfer(UserModifyRoles2.class);

    Session session = assertHasSession(root, "target session");
    ActivityOperation doLogout = assertHasActivityOperation(session, "do logout");

    assertGenerated(assertHasStartNode(doLogout));
    assertGenerated(assertHasFinishNode(doLogout));
    assertHasNoCancelNode(doLogout);
View Full Code Here

    root = loadDirectly(ExitGateAdSimple.class);

    Frame page = assertHasFrame(root, "Home");
    assertNotGenerated(page);

    Session session = assertHasSession(root, "Advertising Session");
    assertNotGenerated(session);

    Frame external = assertHasFrame(root, "External Page");
    assertNotGenerated(external);

    Frame page1 = assertHasFrame(session, "Page 1");
    assertNotGenerated(page1);
    Frame page2 = assertHasFrame(session, "Page 2");
    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

   * @throws Exception
   */
  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);

View Full Code Here

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

    Session session = assertHasSession(root, "Advertising Session");
    Frame ad = assertHasFrame(session, "Advertisement");

    // generated property
    Value property = assertHasValue(session, "View Ads Exit Gate flag");
    assertGenerated(property);
View Full Code Here

   * Check the contents of the generated 'Set gate flag' operation.
   */
  public void testSetOperationContents() throws Exception {
    root = loadAndInfer(ExitGateAdSimple.class);

    Session session = assertHasSession(root, "Advertising Session");
    Frame ad = assertHasFrame(session, "Advertisement");

    // generated property
    Value property = assertHasValue(session, "View Ads Exit Gate flag");

View Full Code Here

   * given property.
   */
  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

TOP

Related Classes of org.openiaml.model.model.scopes.Session

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.