Search in sources :

Example 1 with RestDirectoryProvider

use of io.kamax.mxisd.backend.rest.RestDirectoryProvider in project mxisd by kamax-io.

the class RestDirectoryProviderTest method before.

@Before
public void before() {
    MatrixConfig mxCfg = new MatrixConfig();
    mxCfg.setDomain(domain);
    mxCfg.build();
    RestBackendConfig cfg = new RestBackendConfig();
    cfg.setEnabled(true);
    cfg.setHost("http://localhost:65000");
    cfg.getEndpoints().setDirectory(endpoint);
    cfg.build();
    p = new RestDirectoryProvider(cfg, mxCfg);
}
Also used : MatrixConfig(io.kamax.mxisd.config.MatrixConfig) RestBackendConfig(io.kamax.mxisd.config.rest.RestBackendConfig) RestDirectoryProvider(io.kamax.mxisd.backend.rest.RestDirectoryProvider) Before(org.junit.Before)

Aggregations

RestDirectoryProvider (io.kamax.mxisd.backend.rest.RestDirectoryProvider)1 MatrixConfig (io.kamax.mxisd.config.MatrixConfig)1 RestBackendConfig (io.kamax.mxisd.config.rest.RestBackendConfig)1 Before (org.junit.Before)1