Examples of InputForm


Examples of org.openiaml.model.model.visual.InputForm

   * Test the contents of 'update target' operation.
   * @throws Exception
   */
  public void testContentsOfUpdateTarget() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm form = assertHasInputForm(home, "view news");
    DomainIterator instance = assertHasDomainIterator(home, "view news");
    Value results = instance.getResults();

    Button last = assertHasButton(form, "Last");
    ActivityOperation op = assertHasActivityOperation(last, "update target");
View Full Code Here

Examples of org.openiaml.model.model.visual.InputForm

   *
   * @throws Exception
   */
  public void testResultsLabel() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm form = assertHasInputForm(home, "view news");
    DomainIterator instance = assertHasDomainIterator(home, "view news");
    Value results = instance.getResults();
    Label labelResults = assertHasLabel(form, "Results");

    // onChange updates the Label
View Full Code Here

Examples of org.openiaml.model.model.visual.InputForm

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

    DomainAttributeInstance a1 = assertHasDomainAttributeInstance(instance, "title");
View Full Code Here

Examples of org.openiaml.model.model.visual.InputForm

   */
  public void testInitial() throws Exception {

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

    InputForm left = assertHasInputForm(home, "form left");
    InputForm right = assertHasInputForm(home, "form right");
    InputForm mid = assertHasInputForm(home, "form mid");

    assertHasSyncWire(root, left, mid);
    assertHasSyncWire(root, right, mid);
    assertHasNoSyncWire(root, left, right);

    // contents of left
    assertHasInputTextField(left, "a");
    assertHasInputTextField(left, "b");
    assertHasInputTextField(left, "c");
    assertHasNoInputTextField(left, "d");
    assertHasNoInputTextField(left, "e");

    // contents of right
    assertHasLabel(right, "c");
    assertHasLabel(right, "d");
    assertHasLabel(right, "e");
    assertHasNoLabel(right, "a");
    assertHasNoLabel(right, "b");

    // test the things that must be prevented
    assertCollectionEquals(mid.getOverriddenNames(), "b", "c", "d");

  }
View Full Code Here

Examples of org.openiaml.model.model.visual.InputForm

   *
   * @throws Exception
   */
  public void testMiddleForm() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm mid = assertHasInputForm(home, "form mid");

    // contents of left
    assertHasInputTextField(mid, "a");
    assertHasLabel(mid, "e");

View Full Code Here

Examples of org.openiaml.model.model.visual.InputForm

   *
   * @throws Exception
   */
  public void testLeftFormInference() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm left = assertHasInputForm(home, "form left");

    // contents of left
    assertHasInputTextField(left, "a");
    assertHasInputTextField(left, "b");
    assertHasInputTextField(left, "c");
View Full Code Here

Examples of org.openiaml.model.model.visual.InputForm

   *
   * @throws Exception
   */
  public void testRightFormInference() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm right = assertHasInputForm(home, "form right");

    // contents of left
    assertHasLabel(right, "c");
    assertHasLabel(right, "d");
    assertHasLabel(right, "e");
View Full Code Here

Examples of org.openiaml.model.model.visual.InputForm

      Session loginSession = assertHasSession(root, "role-based login handler for " + target.getName() + " login");

      // it has an inputform
      Frame loginFrame = assertHasFrame(loginSession, "login");
      InputForm loginForm = assertHasInputForm(loginFrame, "login form");

      // the form should have an 'email' and 'password' field
      InputTextField email = assertHasInputTextField(loginForm, "email");
      InputTextField password = assertHasInputTextField(loginForm, "password");
View Full Code Here

Examples of org.openiaml.model.model.visual.InputForm

   */
  public void testInitial() throws Exception {

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

    InputForm source = assertHasInputForm(home, "source");

    // test contents
    InputTextField a = assertHasInputTextField(source, "a");
    InputTextField b = assertHasInputTextField(source, "b");
    Button c = assertHasButton(source, "c");
    Label d = assertHasLabel(source, "d");
    InputTextField e = assertHasInputTextField(source, "e");
    assertNotGenerated(a, b, c, d, e);

    InputForm sync1 = assertHasInputForm(home, "sync target");
    assertHasSyncWire(root, source, sync1);
    InputForm sync2 = assertHasInputForm(home, "sync target 2");
    assertHasSyncWire(root, sync1, sync2);
    assertHasNoSyncWire(root, source, sync2);
    assertHasNoSetWire(root, source, sync1);

    InputForm set1 = assertHasInputForm(home, "set target");
    assertHasSetWire(root, source, set1);
    InputForm set2 = assertHasInputForm(home, "set target 2");
    assertHasSetWire(root, set1, set2);
    assertHasNoSetWire(root, source, set2);
    assertHasNoSyncWire(root, source, set1);

    // test the things that must be prevented
    assertCollectionEquals(sync1.getOverriddenNames(), "a", "b");
    assertCollectionEquals(sync2.getOverriddenNames(), "c", "a");
    assertCollectionEquals(set1.getOverriddenNames(), "a", "b");
    assertCollectionEquals(set2.getOverriddenNames(), "c", "a");

  }
View Full Code Here

Examples of org.openiaml.model.model.visual.InputForm

   *
   * @throws Exception
   */
  public void testSync1() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm sync1 = assertHasInputForm(home, "sync target");

    // test contents
    //InputTextField a = assertHasInputTextField(sync1, "a");
    //InputTextField b = assertHasInputTextField(sync1, "b");
    //Button c = assertHasButton(sync1, "c"); - buttons aren't copied
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.