| | |
| | | public void testSimplePagedResults() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: cn=device 1,dc=example,dc=com", |
| | |
| | | public void testSortWithPagedResults() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortValidGivenNameAscending() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortValidGivenNameDescending() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortValidGivenNameAscendingCaseExactOrderingMatch() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortValidSnAscendingGivenNameAscending() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortValidSnAscendingGivenNameDescending() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |
| | |
| | | public void testSortEmptySortOrder() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortSortOrderMissingType() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortSortOrderMissingMatchingRule() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortUndefinedAttribute() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortUndefinedOrderingRule() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | { |
| | | // Test is supposed to fail in parsing arguments. But we do not |
| | | // want it to fail because there no backend to search in. |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortWithVLVAndPagedResults() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | String[] args = |
| | | { |
| | |
| | | public void testSortWithVLV() |
| | | throws Exception |
| | | { |
| | | TestCaseUtils.clearJEBackend("userRoot", "dc=example,dc=com"); |
| | | TestCaseUtils.clearBackend("userRoot", "dc=example,dc=com"); |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: uid=albert.zimmerman,dc=example,dc=com", |