Package org.openiaml.model.model.scopes

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


   * Check the contents of the generated condition.
   */
  public void testConditionContents() throws Exception {
    root = loadAndInfer(ExitGateAdSimple.class);

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

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

    // generated condition
View Full Code Here


    Frame page = assertHasFrame(root, "Home");
    assertNotGenerated(page);
    DomainSource store = assertHasDomainSource(root, "domain source");
    assertNotGenerated(store);
    Session session = assertHasSession(root, "my session");
    assertNotGenerated(session);

    DomainType obj = assertHasDomainType(root, "User");
    assertNotGenerated(obj);
View Full Code Here

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

    Session session = assertHasSession(root, "my session");
    LoginHandler handler = assertHasLoginHandler(session, "login handler");

    // there should be new pages created
    Frame login = assertHasFrame(session, "Login Successful");
    {
View Full Code Here

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

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

    DomainIterator iterator = assertHasDomainIterator(session, "logged in user");
    DomainInstance instance = iterator.getCurrentInstance();
    assertNotGenerated(instance);

View Full Code Here

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

    Session session = assertHasSession(root, "my session");
    LoginHandler handler = assertHasLoginHandler(session, "login handler");
    DomainIterator instance = assertHasDomainIterator(session, "logged in user");

    // check the query on the instance
    assertEquals("password = :password", instance.getQuery());
View Full Code Here

   * @throws Exception
   */
  public void testGeneratedLogoutPage() throws Exception {
    root = loadAndInfer(LoginHandlerInstance.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 testChecks() throws Exception {
    root = loadAndInfer(LoginHandlerInstance.class);

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

    Frame dest = assertHasFrame(session, "current user");
    assertNotGenerated(dest);

    Operation check = assertHasOperation(session, "check instance");
View Full Code Here

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

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

    Frame logout = assertHasFrame(root, "Logout Successful");
    assertGenerated(logout);

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

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

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

    Frame login = assertHasFrame(loginSession, "login");
    assertGenerated(login);

View Full Code Here

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

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

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

    assertNotEqual("'check instance' operation should have been generated", 0, check.getNodes().size());
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.