use of io.kamax.mxisd.controller.directory.v1.io.UserDirectorySearchResult in project mxisd by kamax-io.
the class RestDirectoryProviderTest method byNameNotFound.
@Test
public void byNameNotFound() {
stubFor(post(urlEqualTo(endpoint)).willReturn(aResponse().withHeader("Content-Type", "application/json").withBody(byNameEmptyResponse)));
UserDirectorySearchResult result = p.searchByDisplayName(byNameSearch);
assertTrue(!result.isLimited());
assertTrue(result.getResults().isEmpty());
verify(postRequestedFor(urlMatching(endpoint)).withHeader("Content-Type", containing("application/json")).withRequestBody(equalTo(byNameRequest)));
}
Aggregations