Package org.openiaml.model.model.scopes

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


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

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

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

    Operation op = assertHasOperation(session, "do logout");
View Full Code Here


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

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

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

View Full Code Here

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

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

    Value my = assertHasValue(session, "my login key");
    assertNotGenerated(my);
    assertFalse(my.isReadOnly());

    // in r2677, StaticValue was merged into Value[readOnly]
    Value key = assertHasValue(session, "login key");
    assertNotGenerated(key);
    assertTrue(key.isReadOnly());

    // shouldn't be generated
    assertHasNoValue(session, "current login key");

    // there should only be one
    assertEquals("Values found: " + session.getValues().toString(), 2, session.getValues().size());

    // there should be a SetWire from the LoginHandler to this
    LoginHandler loginHandler = assertHasLoginHandler(session, "Login Handler");
    assertNotGenerated(loginHandler);

View Full Code Here

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

    Session loginSession = assertHasSession(root, "Login Handler login");
    Frame login = assertHasFrame(loginSession, "login");
    assertGenerated(login);

    // it should contain a form
    InputForm form = assertHasInputForm(login, "login form");
View Full Code Here

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

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

    ActivityOperation check = assertHasActivityOperation(session, "check key");
    assertGenerated(check);

    Session loginSession = assertHasSession(root, "Login Handler login");
    assertGenerated(loginSession);

    // destination page
    Frame login = assertHasFrame(loginSession, "login");
    {
View Full Code Here

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

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

    assertHasNoOperation(session, "check instance");

  }
View Full Code Here

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

    Session container = assertHasSession(root, "Containing Session");
    Session session = assertHasSession(container, "Protected Session");
    assertNotGenerated(session);

    Frame see = assertHasFrame(session, "See Your OpenID");
    assertNotGenerated(see);

    Label openid = assertHasLabel(see, "Current OpenID");
    assertEqualType(openid.getType(), BuiltinDataTypes.getTypeOpenIDURL());
    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));

View Full Code Here

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

    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);

View Full Code Here

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

    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

   *
   * @throws Exception
   */
  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'
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.