Package org.openiaml.model.model.visual

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


   * @throws Exception
   */
  public void testTargetOnAccessFromSource() throws Exception {
    root = loadAndInfer(SetWireSyncChained.class, true);

    Frame home = assertHasFrame(root, "Home");
    Frame page2 = assertHasFrame(root, "page2");
    final InputTextField source = assertHasInputTextField(home, "source");
    InputTextField target = assertHasInputTextField(page2, "target");

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


   * The DomainIterator will have DomainAttributeInstances created.
   *
   * @throws Exception
   */
  public void testDomainIteratorHasDomainAttributes() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    DomainType news = assertHasDomainType(root, "News");
    DomainIterator iterator = assertHasDomainIterator(home, "select three news");
    DomainInstance instance = iterator.getCurrentInstance();
    assertGenerated(instance);

View Full Code Here

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

    Frame page3 = assertHasFrame(root, "page3");
    Frame page2 = assertHasFrame(root, "page2");
    InputTextField target = assertHasInputTextField(page2, "target");
    final InputTextField changed = assertHasInputTextField(page3, "changed");

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

   * The IteratorList will have Labels created within it.
   *
   * @throws Exception
   */
  public void testLabelsCreatedInList() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    DomainType news = assertHasDomainType(root, "News");
    IteratorList list = assertHasIteratorList(home, "List");

    Label lid = assertHasLabel(list, "id");
    Label ltitle = assertHasLabel(list, "title");
View Full Code Here

    return ContainingSession.class;
  }

  public void testContainingSession() throws Exception {
   
    Frame home = assertHasFrame(root, "Home");
    Session s1 = assertHasSession(root, "s1");
    Session s2 = assertHasSession(root, "s2");
   
    InputForm form1 = assertHasInputForm(home, "form1");
   
    Frame f1 = assertHasFrame(s1, "f1");
   
    Frame f2 = assertHasFrame(s2, "f2");
    Frame f3 = assertHasFrame(f2, "f3");
    InputTextField t1 = assertHasInputTextField(f3, "t1");
   
    assertEquals(null, getHelper().containingSession(home));
    assertEquals(null, getHelper().containingSession(form1));
    assertEquals(s1, getHelper().containingSession(f1));
View Full Code Here

   
  }
 
  public void testContainingSessionEquals() throws Exception {
   
    Frame home = assertHasFrame(root, "Home");
    Session s1 = assertHasSession(root, "s1");
    Session s2 = assertHasSession(root, "s2");
   
    InputForm form1 = assertHasInputForm(home, "form1");
   
    Frame f1 = assertHasFrame(s1, "f1");
   
    Frame f2 = assertHasFrame(s2, "f2");
    Frame f3 = assertHasFrame(f2, "f3");
    InputTextField t1 = assertHasInputTextField(f3, "t1");
   
    // test containingSessionEquals
    assertTrue(getHelper().containingSessionEquals(f1, s1));
    assertTrue(getHelper().containingSessionEquals(f2, s2));
View Full Code Here

   
  }
 
  public void sessionContains() throws Exception {
   
    Frame home = assertHasFrame(root, "Home");
    Session s1 = assertHasSession(root, "s1");
    Session s2 = assertHasSession(root, "s2");
   
    InputForm form1 = assertHasInputForm(home, "form1");
   
    Frame f1 = assertHasFrame(s1, "f1");
   
    Frame f2 = assertHasFrame(s2, "f2");
    Frame f3 = assertHasFrame(f2, "f3");
    InputTextField t1 = assertHasInputTextField(f3, "t1");
   
    // test containingSessionEquals
    assertTrue(getHelper().sessionContains(s1, f1));
    assertTrue(getHelper().sessionContains(s2, f2));
View Full Code Here

    return Connects.class;
  }

  public void testConnects() throws Exception {
   
    Frame home = assertHasFrame(root, "Home");
    Frame p2 = assertHasFrame(root, "p2");
    Frame p3 = assertHasFrame(root, "p3");
   
    SyncWire sync1 = assertHasSyncWire(root, home, p2, "sync1");
    // bidirectional
    assertTrue(getHelper().connects(sync1, home, p2));
    assertTrue(getHelper().connects(sync1, p2, home));
View Full Code Here

            ICreateElementsFactory factory = CachedModelInferer.getInstance().createCreateElementsFactory();
            EcoreCreateElementsHelper handler = (EcoreCreateElementsHelper) factory.createHandler(root);
           
            // add the pages etc
            for (int j = 0; j < i_copy; j++) {
              Frame page = handler.createFrame(root);
              page.setName("test page " + j);
             
              /*
              Button button = (Button) handler.createElement(page, VisualPackage.eINSTANCE.getButton(), ModelPackage.eINSTANCE.getInternetApplication_Children());
              button.setName("test button " + j);
              */
 
View Full Code Here

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

    Frame page = assertHasFrame(root, "get student");
    InputForm form = assertHasInputForm(page, "view student");
    DomainIterator studentInstance = assertHasDomainIterator(page, "current student");
    DomainInstance instance = studentInstance.getCurrentInstance();
    assertGenerated(instance);

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.