use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method allDataSources.
@Test
public void allDataSources() throws Exception {
String filter = LegacyLdapFilter.allDataSources();
ZLdapFilter zLdapFilter = filterDactory.allDataSources();
verify(FilterId.ALL_DATA_SOURCES, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method accountsOnServerAndCosHasSubordinates.
@Test
public void accountsOnServerAndCosHasSubordinates() throws Exception {
Server SERVER = prov.getLocalServer();
String COS_ID = genUUID();
String filter = LegacyLdapFilter.accountsOnServerOnCosHasSubordinates(SERVER.getServiceHostname(), COS_ID);
ZLdapFilter zLdapFilter = filterDactory.accountsOnServerAndCosHasSubordinates(SERVER.getServiceHostname(), COS_ID);
verify(FilterId.ACCOUNTS_ON_SERVER_AND_COS_HAS_SUBORDINATES, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method fromFilterString.
@Test
public void fromFilterString() throws Exception {
String FILTER_STR = "(blah=123)";
ZLdapFilter zLdapFilter = filterDactory.fromFilterString(FilterId.AUTO_PROVISION_SEARCH, FILTER_STR);
verify(FilterId.AUTO_PROVISION_SEARCH, FILTER_STR, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method allDomains.
@Test
public void allDomains() throws Exception {
String filter = LegacyLdapFilter.allDomains();
ZLdapFilter zLdapFilter = filterDactory.allDomains();
verify(FilterId.ALL_DOMAINS, filter, zLdapFilter);
}
use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.
the class TestLdapZLdapFilter method homedOnServer.
@Test
public void homedOnServer() throws Exception {
Server SERVER = prov.getLocalServer();
String filter = LegacyLdapFilter.homedOnServer(SERVER.getServiceHostname());
ZLdapFilter zLdapFilter = filterDactory.homedOnServer(SERVER.getServiceHostname());
verify(FilterId.HOMED_ON_SERVER, filter, zLdapFilter);
}
Aggregations