Package org.openiaml.model.model.visual

Examples of org.openiaml.model.model.visual.Frame


   * @throws Exception
   */
  public void testCreatesCanCastCondition() throws Exception {

    root = loadAndInfer(InputTextFieldDataTypeSync.class);
    Frame home = assertHasFrame(root, "Home");

    InputTextField email = assertHasInputTextField(home, "Email 2");
    {
      BuiltinProperty canCast = assertHasBuiltinProperty(email, "can cast?");
      assertGenerated(canCast);
View Full Code Here


   * @throws Exception
   */
  public void testEditRunUpdateCallsCondition() throws Exception {

    root = loadAndInfer(InputTextFieldDataTypeSync.class);
    Frame home = assertHasFrame(root, "Home");

    InputTextField email = assertHasInputTextField(home, "Email 2");
    Value emailValue = assertHasFieldValue(email);
    InputTextField integer = assertHasInputTextField(home, "Integer");

View Full Code Here

   * @throws Exception
   */
  public void testEditRunUpdateCallsConditionReverse() throws Exception {

    root = loadAndInfer(InputTextFieldDataTypeSync.class);
    Frame home = assertHasFrame(root, "Home");

    InputTextField integer = assertHasInputTextField(home, "Integer");
    Value intValue = assertHasFieldValue(integer);
    InputTextField email = assertHasInputTextField(home, "Email 2");

View Full Code Here

   * @throws Exception
   */
  public void testOnAccessCallsCanCastCondition() throws Exception {

    root = loadAndInfer(InputTextFieldDataTypeSync.class);
    Frame home = assertHasFrame(root, "Home");

    InputTextField integer = assertHasInputTextField(home, "Integer");
    InputTextField email = assertHasInputTextField(home, "Email 2");

    Event onAccess = integer.getOnAccess();
View Full Code Here

    root = loadAndInfer(SessionSyncWires.class, true);
  }

  public void testInference() throws Exception {
    // initial elements
    Frame outside = assertHasFrame(root, "outside");
    Session session = assertHasSession(root, "session");
    Frame inside = assertHasFrame(session, "inside");
    assertNotSame(outside, inside);
    InputTextField field1 = assertHasInputTextField(outside, "target");
    InputTextField field2 = assertHasInputTextField(inside, "target");
    assertNotSame(field1, field2);
View Full Code Here

   * @throws Exception
   */
  public void testOnAccessCallsValidate() throws Exception {

    root = loadAndInfer(InputTextFieldDataTypeSync.class);
    Frame home = assertHasFrame(root, "Home");

    InputTextField integer = assertHasInputTextField(home, "Integer");

    Event onAccess = integer.getOnAccess();
    Operation init = assertHasOperation(integer, "init");
View Full Code Here

   *
   * @see SetWireClient#testSetWireCondition()
   * @throws Exception
   */
  public void testSessionParamterAddsCheckCondition() throws Exception {
    Frame outside = assertHasFrame(root, "outside");
    Session session = assertHasSession(root, "session");
    Frame inside = assertHasFrame(session, "inside");
    InputTextField field1 = assertHasInputTextField(outside, "target");
    InputTextField field2 = assertHasInputTextField(inside, "target");

    Event access = field1.getOnAccess();
    assertGenerated(access);
View Full Code Here

   * @throws Exception
   */
  public void testOnAccessCallsValidateIfFieldValueIsSet() throws Exception {

    root = loadAndInfer(InputTextFieldDataTypeSync.class);
    Frame home = assertHasFrame(root, "Home");

    InputTextField integer = assertHasInputTextField(home, "Integer");
    Event onAccess = integer.getOnAccess();

    // validate operation is also called
View Full Code Here

   * @throws Exception
   */
  public void testInitial() throws Exception {
    root = loadDirectly(UserRoles.class);

    Frame page = assertHasFrame(root, "Home");
    assertNotGenerated(page);
    Role role = assertHasRole(root, "default role");
    assertNotGenerated(role);
    assertHasNone(role, "iaml:attributes");
    Session session = assertHasSession(root, "target session");
    assertNotGenerated(session);

    Frame target = assertHasFrame(session, "target");
    assertNotGenerated(target);

    AccessControlHandler ach = assertHasAccessControlHandler(session, "role-based access");
    assertNotGenerated(ach);
    RequiresEdge requires = assertHasRequiresEdge(session, ach, role);
    assertNotGenerated(requires);

    // there shouldn't be a login handler on this page
    assertHasNoLoginHandler(session, "role-based login handler");

    // or a logout page
    assertHasNoFrame(session, "logout");

    // or a login page in the root
    assertHasNoFrame(root, "login");

    // no operations in the ach or session
    assertEquals(0, ach.getOperations().size());
    assertEquals(0, session.getOperations().size());

    // or events in the target page
    assertNull(target.getOnAccess());
    assertNull(target.getOnInit());
  }
View Full Code Here

    assertEquals(handler.getType(), LoginHandlerTypes.USER);

    // so there should be a login page
    Session loginSession = assertHasSession(root, "role-based login handler for target session login");
    assertGenerated(loginSession);
    Frame login = assertHasFrame(loginSession, "login");
    assertGenerated(login);

    // and a logout page
    Frame logout = assertHasFrame(session, "logout");
    assertGenerated(logout);

  }
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.visual.Frame

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.