use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method calendarResourceByForeignPrincipal.
@Test
public void calendarResourceByForeignPrincipal() throws Exception {
String FOREIGN_PRINCIPAL = getTestName();
String filter = LegacyLdapFilter.calendarResourceByForeignPrincipal(FOREIGN_PRINCIPAL);
ZLdapFilter zLdapFilter = filterDactory.calendarResourceByForeignPrincipal(FOREIGN_PRINCIPAL);
verify(FilterId.CALENDAR_RESOURCE_BY_FOREIGN_PRINCIPAL, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method calendarResourcesHomedOnServer.
@Test
public void calendarResourcesHomedOnServer() throws Exception {
Server SERVER = prov.getLocalServer();
String filter = LegacyLdapFilter.calendarResourcesHomedOnServer(SERVER.getServiceHostname());
ZLdapFilter zLdapFilter = filterDactory.calendarResourcesHomedOnServer(SERVER.getServiceHostname());
verify(FilterId.CALENDAR_RESOURCES_HOMED_ON_SERVER, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method addrsExist.
@Test
public void addrsExist() throws Exception {
String[] ADDRS = new String[] { "addr1@test.com", "addr2@test.com", "addr2@test.com" };
String filter = LegacyLdapFilter.addrsExist(ADDRS);
ZLdapFilter zLdapFilter = filterDactory.addrsExist(ADDRS);
verify(FilterId.ADDRS_EXIST, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method serverByService.
@Test
public void serverByService() throws Exception {
String SERVICE = getTestName();
String filter = LegacyLdapFilter.serverByService(SERVICE);
ZLdapFilter zLdapFilter = filterDactory.serverByService(SERVICE);
verify(FilterId.SERVER_BY_SERVICE, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method allAccountsOnly.
@Test
public void allAccountsOnly() throws Exception {
String filter = LegacyLdapFilter.allAccountsOnly();
ZLdapFilter zLdapFilter = filterDactory.allAccountsOnly();
verify(FilterId.ALL_ACCOUNTS_ONLY, filter, zLdapFilter);
}
Aggregations