Examples of DomainIterator


Examples of org.openiaml.model.model.domain.DomainIterator

   */
  public void testButtonPrevious() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm form = assertHasInputForm(home, "view news");

    DomainIterator instance = assertHasDomainIterator(home, "view news");
    Operation iprevious = instance.getPrevious();
    Function hasPrevious = instance.getHasPrevious();

    Button previous = assertHasButton(form, "Previous");

    Event onClick = previous.getOnClick();
    assertGenerated(onClick);
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainIterator

   */
  public void testButtonFirst() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm form = assertHasInputForm(home, "view news");

    DomainIterator instance = assertHasDomainIterator(home, "view news");
    Operation ireset = instance.getReset();

    // we need to reverse 'empty' into Function 'not empty'
    ActivityPredicate notEmpty = assertHasActivityPredicate(instance, "not empty");
    assertGenerated(notEmpty);

View Full Code Here

Examples of org.openiaml.model.model.domain.DomainIterator

   */
  public void testButtonLast() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm form = assertHasInputForm(home, "view news");

    DomainIterator instance = assertHasDomainIterator(home, "view news");
    Operation ijump = instance.getJump();

    // we need to reverse 'empty' into Function 'not empty'
    ActivityPredicate notEmpty = assertHasActivityPredicate(instance, "not empty");
    assertGenerated(notEmpty);

View Full Code Here

Examples of org.openiaml.model.model.domain.DomainIterator

   * @throws Exception
   */
  public void testLastButtonUpdatesTargetProperty() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    InputForm form = assertHasInputForm(home, "view news");
    DomainIterator instance = assertHasDomainIterator(home, "view news");
    Operation ijump = instance.getJump();

    // we need to reverse 'empty' into Function 'not empty'
    ActivityPredicate notEmpty = assertHasActivityPredicate(instance, "not empty");
    assertGenerated(notEmpty);

View Full Code Here

Examples of org.openiaml.model.model.domain.DomainIterator

   * @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");
    Value target = assertHasValue(last, "target");

View Full Code Here

Examples of org.openiaml.model.model.domain.DomainIterator

   *
   * @throws Exception
   */
  public void testContentsOfNotEmpty() throws Exception {
    Frame home = assertHasFrame(root, "Home");
    DomainIterator instance = assertHasDomainIterator(home, "view news");
    Function empty = instance.getEmpty();

    // we need to reverse 'empty' into Function 'not empty'
    ActivityPredicate notEmpty = assertHasActivityPredicate(instance, "not empty");

    StartNode start = assertHasStartNode(notEmpty);
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainIterator

  public void testCurrentInstanceCreated() throws Exception {
    root = loadAndInfer(UserCreateRoles.class);

    Session session = assertHasSession(root, "target session");
    DomainIterator cur = assertHasDomainIterator(session, "current instance");
    assertGenerated(cur);

    AccessControlHandler ach = assertHasAccessControlHandler(session, "role-based access");
    assertNotGenerated(ach);
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainIterator

   */
  public void testCurrentInstanceHasReferenceToRole() throws Exception {
    root = loadAndInfer(UserCreateRoles.class);

    Session session = assertHasSession(root, "target session");
    DomainIterator cur = assertHasDomainIterator(session, "current instance");

    Role role = assertHasRole(root, "default role");

    // a source has been connected
    DomainSource source = cur.getOutSelects().get(0).getTo();
    // (but it's already been defined)
    assertNotGenerated(source);

    // there must be a link from 'cur' to the target Role
    // (so the iterator knows what type it is)
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainIterator

   * @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
    Event onChange = instance.getOnChange();
    Operation update = assertHasOperation(labelResults, "update");

    ECARule run = assertHasRunAction(root, onChange, update);

    // with the given parameter
View Full Code Here

Examples of org.openiaml.model.model.domain.DomainIterator

  public void testCreatedDefaultRoleSource() throws Exception {

    root = loadAndInfer(UserCreateRoles.class);

    Session session = assertHasSession(root, "target session");
    DomainIterator cur = assertHasDomainIterator(session, "current instance");

    Role role = assertHasRole(root, "default role");

    Role genrole = assertHasRole(root, "User");
    assertGenerated(genrole);

    // the source of 'role'
    DomainSource source = cur.getOutSelects().get(0).getTo();
    assertNotGenerated(assertHasSchemaEdge(source, role));

    // the generated role is NOT connected to the same
    assertHasNoSchemaEdge(source, genrole);
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.