use of io.kamax.mxisd.backend.exec.ExecDirectoryStore in project mxisd by kamax-io.
the class ExecDirectoryStoreTest method byNameNoCommandDefined.
@Test
public void byNameNoCommandDefined() {
ExecConfig cfg = getCfg();
assertTrue(StringUtils.isEmpty(cfg.getDirectory().getSearch().getByName().getCommand()));
ExecDirectoryStore store = getStore(cfg);
UserDirectorySearchResult result = store.searchByDisplayName("user");
assertFalse(result.isLimited());
assertTrue(result.getResults().isEmpty());
}
use of io.kamax.mxisd.backend.exec.ExecDirectoryStore in project mxisd by kamax-io.
the class ExecDirectoryStoreTest method getStore.
private ExecDirectoryStore getStore(ExecConfig cfg) {
ExecDirectoryStore store = new ExecDirectoryStore(cfg, getMatrixCfg());
store.setExecutorSupplier(this::build);
return store;
}
Aggregations