Search in sources :

Example 1 with ExecIdentityStore

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());
}
Also used : SingleLookupRequest(io.kamax.mxisd.lookup.SingleLookupRequest) SingleLookupReply(io.kamax.mxisd.lookup.SingleLookupReply) ExecIdentityStore(io.kamax.mxisd.backend.exec.ExecIdentityStore) Test(org.junit.Test)

Example 2 with ExecIdentityStore

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

Example 3 with ExecIdentityStore

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());
}
Also used : SingleLookupRequest(io.kamax.mxisd.lookup.SingleLookupRequest) SingleLookupReply(io.kamax.mxisd.lookup.SingleLookupReply) ExecIdentityStore(io.kamax.mxisd.backend.exec.ExecIdentityStore) Test(org.junit.Test)

Aggregations

ExecIdentityStore (io.kamax.mxisd.backend.exec.ExecIdentityStore)3 SingleLookupReply (io.kamax.mxisd.lookup.SingleLookupReply)2 SingleLookupRequest (io.kamax.mxisd.lookup.SingleLookupRequest)2 Test (org.junit.Test)2