Examples of DomainInstance


Examples of org.openiaml.model.model.domain.DomainInstance

   * @throws Exception
   */
  public void testAttributesCreated() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    DomainIterator iterator = assertHasDomainIterator(home, "iterable");
    DomainInstance instance = iterator.getCurrentInstance();
    assertGenerated(instance);
    InputForm form = assertHasInputForm(home, "View News");

    InputTextField t1 = assertHasInputTextField(form, "title");
    InputTextField t2 = assertHasInputTextField(form, "content");
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainInstance

   * @throws Exception
   */
  public void testTextFieldEditCallsAttributeUpdate() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    DomainIterator iterator = assertHasDomainIterator(home, "iterable");
    DomainInstance instance = iterator.getCurrentInstance();
    assertGenerated(instance);

    InputForm form = assertHasInputForm(home, "View News");
    InputTextField t1 = assertHasInputTextField(form, "title");
    DomainAttributeInstance a1 = assertHasDomainAttributeInstance(instance, "title");
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainInstance

   * @throws Exception
   */
  public void testAttributeEditCallsTextFieldUpdate() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    DomainIterator iterator = assertHasDomainIterator(home, "iterable");
    DomainInstance instance = iterator.getCurrentInstance();
    assertGenerated(instance);

    InputForm form = assertHasInputForm(home, "View News");
    InputTextField t1 = assertHasInputTextField(form, "title");
    DomainAttributeInstance a1 = assertHasDomainAttributeInstance(instance, "title");
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainInstance

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

    SyncWire sync = assertHasSyncWire(root, studentInstance, form, "sync");
    assertNotGenerated(sync);
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainInstance

    root = loadAndInfer(DomainInheritanceEditing.class);

    Frame page = assertHasFrame(root, "create a new student without autosave");
    InputForm form = assertHasInputForm(page, "new student form");
    DomainIterator studentInstance = assertHasDomainIterator(page, "new student");
    DomainInstance instance = studentInstance.getCurrentInstance();
    assertGenerated(instance);

    SyncWire sync = assertHasSyncWire(root, studentInstance, form, "sync");
    assertNotGenerated(sync);
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainInstance

    DomainAttribute aEmail = assertHasDomainAttribute(obj, "email");
    DomainAttribute aAddress = assertHasDomainAttribute(obj, "address");

    Frame view = assertHasFrame(root, "View");
    DomainIterator iterator = assertHasDomainIterator(view, "Viewed");
    DomainInstance instance = iterator.getCurrentInstance();
    assertGenerated(instance);

    DomainAttributeInstance iString = assertHasDomainAttributeInstance(instance, "string");
    DomainAttributeInstance iInteger = assertHasDomainAttributeInstance(instance, "integer");
    DomainAttributeInstance iDate = assertHasDomainAttributeInstance(instance, "date");
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainInstance

   * @throws Exception
   */
  public void testFormHasCorrectTypes() throws Exception {
    Frame view = assertHasFrame(root, "View");
    DomainIterator iterator = assertHasDomainIterator(view, "Viewed");
    DomainInstance instance = iterator.getCurrentInstance();
    assertGenerated(instance);

    DomainAttributeInstance iString = assertHasDomainAttributeInstance(instance, "string");
    DomainAttributeInstance iInteger = assertHasDomainAttributeInstance(instance, "integer");
    DomainAttributeInstance iDate = assertHasDomainAttributeInstance(instance, "date");
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainInstance

    assertEquals(0, page.getLoginHandlers().size());
    assertEquals(0, page.getAccessHandlers().size());
    DomainIterator obj = assertHasDomainIterator(page, "User instance");

    // issue 241: there should now be a DomainInstance
    DomainInstance instance = obj.getCurrentInstance();
    assertGenerated(instance);
   
    // two attributes + generated primary key
    assertEquals(3, typeSelect(instance.getFeatureInstances(), DomainAttributeInstance.class).size());

    {
      DomainAttributeInstance attr = assertHasDomainAttributeInstance(instance, "username");
      assertEquals(attr.getName(), "username");
    }
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainInstance

    root = loadAndInfer(DomainInstanceSetWire.class);

    Frame add = assertHasFrame(root, "Add New Product");

    DomainIterator editing = assertHasDomainIterator(add, "New Product");
    DomainInstance instance = editing.getCurrentInstance();
    assertGenerated(instance);
    InputForm edit = assertHasInputForm(add, "Edit Form");

    // text fields
    InputTextField tid = assertHasInputTextField(edit, "id");
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainInstance

    root = loadAndInfer(DomainInstanceSetWire.class);

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

    DomainIterator viewing = assertHasDomainIterator(page, "viewing instance");
    DomainInstance instance = viewing.getCurrentInstance();
    assertGenerated(instance);
    InputForm view = assertHasInputForm(page, "View");

    // labels
    Label tid = assertHasLabel(view, "id");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.