use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method domainByVirtualHostame.
@Test
public void domainByVirtualHostame() throws Exception {
String VIRTUAL_HOST_NAME = getTestName();
String filter = LegacyLdapFilter.domainByVirtualHostame(VIRTUAL_HOST_NAME);
ZLdapFilter zLdapFilter = filterDactory.domainByVirtualHostame(VIRTUAL_HOST_NAME);
verify(FilterId.DOMAIN_BY_VIRTUAL_HOSTNAME, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method andWith.
@Test
public void andWith() throws Exception {
String FILTER1 = "(foo=1)";
String FILTER2 = "(bar=2)";
String filter = LegacyLdapFilter.andWith(FILTER1, FILTER2);
ZLdapFilter zLdapFilter = filterDactory.andWith(/* use ADMIN_SEARCH instead of UNITTEST to distinguish with filter id for FILER2,
* filter id of the first filter should be used in the result filter
*/
filterDactory.fromFilterString(FilterId.ADMIN_SEARCH, FILTER1), filterDactory.fromFilterString(FilterId.UNITTEST, FILTER2));
verify(FilterId.ADMIN_SEARCH, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method allCalendarResources.
@Test
public void allCalendarResources() throws Exception {
String filter = LegacyLdapFilter.allCalendarResources();
ZLdapFilter zLdapFilter = filterDactory.allCalendarResources();
verify(FilterId.ALL_CALENDAR_RESOURCES, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method accountByName.
@Test
public void accountByName() throws Exception {
String NAME = getTestName();
String filter = LegacyLdapFilter.accountByName(NAME);
ZLdapFilter zLdapFilter = filterDactory.accountByName(NAME);
verify(FilterId.ACCOUNT_BY_NAME, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method allSignatures.
@Test
public void allSignatures() throws Exception {
String filter = LegacyLdapFilter.allSignatures();
ZLdapFilter zLdapFilter = filterDactory.allSignatures();
verify(FilterId.ALL_SIGNATURES, filter, zLdapFilter);
}
Aggregations