Search in sources :

Example 1 with ExecDirectoryStore

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());
}
Also used : ExecConfig(io.kamax.mxisd.config.ExecConfig) UserDirectorySearchResult(io.kamax.mxisd.http.io.UserDirectorySearchResult) ExecDirectoryStore(io.kamax.mxisd.backend.exec.ExecDirectoryStore) Test(org.junit.Test)

Example 2 with ExecDirectoryStore

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;
}
Also used : ExecDirectoryStore(io.kamax.mxisd.backend.exec.ExecDirectoryStore)

Aggregations

ExecDirectoryStore (io.kamax.mxisd.backend.exec.ExecDirectoryStore)2 ExecConfig (io.kamax.mxisd.config.ExecConfig)1 UserDirectorySearchResult (io.kamax.mxisd.http.io.UserDirectorySearchResult)1 Test (org.junit.Test)1