Package org.nasutekds.server.api

Examples of org.nasutekds.server.api.SubtreeSpecification


  public void testValueOf4() throws Exception {

    String input = "{base \"dc=sun, dc=com\"}";
    String output = "{ base \"dc=sun,dc=com\" }";

    SubtreeSpecification ss = RFC3672SubtreeSpecification.valueOf(rootDN,
        input);
    assertEquals(output, ss.toString());
  }
View Full Code Here


    String input = "{ base \"dc=sun, dc=com\", "
        + "specificationFilter item:ds-config-rootDN }";
    String output = "{ base \"dc=sun,dc=com\", "
        + "specificationFilter item:ds-config-rootDN }";

    SubtreeSpecification ss = RFC3672SubtreeSpecification.valueOf(rootDN,
        input);
    assertEquals(output, ss.toString());
  }
View Full Code Here

    String output = "{ base \"dc=sun,dc=com\", "
        + "specificExclusions { chopBefore:\"o=abc\", "
        + "chopAfter:\"o=xyz\" }, maximum 10, specificationFilter "
        + "not:not:item:foo }";

    SubtreeSpecification ss = RFC3672SubtreeSpecification.valueOf(rootDN,
        input);
    assertEquals(output, ss.toString());
  }
View Full Code Here

        + "chopAfter:\"o=xyz\"},specificationFilter not:not:item:foo}";
    String output = "{ specificExclusions { chopBefore:\"o=abc\", "
        + "chopAfter:\"o=xyz\" }, "
        + "maximum 10, specificationFilter not:not:item:foo }";

    SubtreeSpecification ss = RFC3672SubtreeSpecification.valueOf(rootDN,
        input);
    assertEquals(output, ss.toString());
  }
View Full Code Here

  public void testValueOf8() throws Exception {

    String input = "{ specificationFilter and:{item:top, item:person} }";
    String output = "{ specificationFilter and:{item:top, item:person} }";

    SubtreeSpecification ss = RFC3672SubtreeSpecification.valueOf(rootDN,
        input);
    assertEquals(output, ss.toString());
  }
View Full Code Here

  public void testValueOf9() throws Exception {

    String input = "{ specificationFilter or:{item:top, item:person} }";
    String output = "{ specificationFilter or:{item:top, item:person} }";

    SubtreeSpecification ss = RFC3672SubtreeSpecification.valueOf(rootDN,
        input);
    assertEquals(output, ss.toString());
  }
View Full Code Here

    String input = "{ specificationFilter "
        + "or:{item:top, item:foo, and:{item:one, item:two}} }";
    String output = "{ specificationFilter "
        + "or:{item:top, item:foo, and:{item:one, item:two}} }";

    SubtreeSpecification ss = RFC3672SubtreeSpecification.valueOf(rootDN,
        input);
    assertEquals(output, ss.toString());
  }
View Full Code Here

  @Test
  public void testMatches1() throws Exception {
    DN dn = DN.decode("dc=sun, dc=com");

    String value = "{ base \"dc=sun, dc=com\" }";
    SubtreeSpecification ss = RFC3672SubtreeSpecification.valueOf(rootDN,
        value);

    assertEquals(true, ss
        .isWithinScope(createEntry(dn, getObjectClasses())));
  }
View Full Code Here

  @Test
  public void testMatches2() throws Exception {
    DN dn = DN.decode("dc=com");

    String value = "{ base \"dc=sun, dc=com\" }";
    SubtreeSpecification ss = RFC3672SubtreeSpecification.valueOf(rootDN,
        value);

    assertEquals(false, ss
        .isWithinScope(createEntry(dn, getObjectClasses())));
  }
View Full Code Here

  @Test
  public void testMatches3() throws Exception {
    DN dn = DN.decode("dc=foo, dc=sun, dc=com");

    String value = "{ base \"dc=sun, dc=com\" }";
    SubtreeSpecification ss = RFC3672SubtreeSpecification.valueOf(rootDN,
        value);

    assertEquals(true, ss
        .isWithinScope(createEntry(dn, getObjectClasses())));
  }
View Full Code Here

TOP

Related Classes of org.nasutekds.server.api.SubtreeSpecification

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.