Search in sources :

Example 6 with MxisdConfig

use of io.kamax.mxisd.config.MxisdConfig in project mxisd by kamax-io.

the class MxisdDefaultTest method defaultConfig.

@Test
public void defaultConfig() {
    MxisdConfig cfg = MxisdConfig.forDomain(domain).inMemory();
    Mxisd m = new Mxisd(cfg);
    m.start();
    assertNotNull(m.getConfig());
    assertEquals(domain, m.getConfig().getMatrix().getDomain());
    assertTrue(m.getNotif().isMediumSupported(ThreePidMedium.Email.getId()));
    assertTrue(m.getNotif().isMediumSupported(ThreePidMedium.PhoneNumber.getId()));
}
Also used : MxisdConfig(io.kamax.mxisd.config.MxisdConfig) Mxisd(io.kamax.mxisd.Mxisd) Test(org.junit.Test)

Aggregations

MxisdConfig (io.kamax.mxisd.config.MxisdConfig)6 Mxisd (io.kamax.mxisd.Mxisd)4 MemoryIdentityConfig (io.kamax.mxisd.config.memory.MemoryIdentityConfig)2 MemoryThreePid (io.kamax.mxisd.config.memory.MemoryThreePid)2 Before (org.junit.Before)2 BeforeClass (org.junit.BeforeClass)2 GreenMail (com.icegreen.greenmail.util.GreenMail)1 EmailSmtpConfig (io.kamax.mxisd.config.threepid.connector.EmailSmtpConfig)1 EmailConfig (io.kamax.mxisd.config.threepid.medium.EmailConfig)1 FederationDnsOverwrite (io.kamax.mxisd.dns.FederationDnsOverwrite)1 ConfigurationException (io.kamax.mxisd.exception.ConfigurationException)1 HomeserverFederationResolver (io.kamax.mxisd.matrix.HomeserverFederationResolver)1 CloseableHttpClient (org.apache.http.impl.client.CloseableHttpClient)1 Test (org.junit.Test)1