use of io.kamax.mxisd.backend.exec.ExecIdentityStore in project mxisd by kamax-io.
the class ExecIdentityStoreTest method singleSuccessEmpty.
@Test
public void singleSuccessEmpty() {
ExecIdentityStore store = getStore("singleSuccessEmpty");
SingleLookupRequest req = new SingleLookupRequest();
req.setType(ThreePidMedium.Email.getId());
req.setThreePid(user1Email);
Optional<SingleLookupReply> lookup = store.find(req);
assertFalse(lookup.isPresent());
}
use of io.kamax.mxisd.backend.exec.ExecIdentityStore in project mxisd by kamax-io.
the class ExecIdentityStoreTest method getStore.
private ExecIdentityStore getStore(ExecConfig cfg) {
ExecIdentityStore store = new ExecIdentityStore(cfg, getMatrixCfg());
store.setExecutorSupplier(this::build);
assertTrue(store.isLocal());
return store;
}
use of io.kamax.mxisd.backend.exec.ExecIdentityStore in project mxisd by kamax-io.
the class ExecIdentityStoreTest method singleSuccessNoOutput.
@Test
public void singleSuccessNoOutput() {
ExecIdentityStore store = getStore(sno);
SingleLookupRequest req = new SingleLookupRequest();
req.setType(ThreePidMedium.Email.getId());
req.setThreePid(user1Email);
Optional<SingleLookupReply> lookup = store.find(req);
assertFalse(lookup.isPresent());
}
Aggregations