Search in sources :

Example 1 with DomainList

use of com.yahoo.athenz.zms.DomainList in project athenz by yahoo.

the class MockZMSFileChangeLogStore method setDomainList.

public void setDomainList(List<String> domains) {
    if (domains != null) {
        domList = new DomainList();
        domList.setNames(domains);
        when(zms.getDomainList()).thenReturn(domList);
    } else {
        when(zms.getDomainList()).thenThrow(new ZMSClientException(500, "Invalid request"));
    }
}
Also used : DomainList(com.yahoo.athenz.zms.DomainList) ZMSClientException(com.yahoo.athenz.zms.ZMSClientException)

Aggregations

DomainList (com.yahoo.athenz.zms.DomainList)1 ZMSClientException (com.yahoo.athenz.zms.ZMSClientException)1