assertEquals(Flags.Flag.SEEN, c.getDefaultProcessMessageAction());
}
public void testSecureConfig() throws Exception
{
ImapsConnector c = (ImapsConnector)muleContext.getRegistry().lookupConnector("imapsConnector");
assertNotNull(c);
assertFalse(c.isBackupEnabled());
assertEquals("newBackup", c.getBackupFolder());
assertEquals(1234, c.getCheckFrequency());
assertEquals("newMailbox", c.getMailboxFolder());
assertEquals(false, c.isDeleteReadMessages());
// authenticator?
//The full path gets resolved, we're just checkng that the property got set
assertTrue(c.getClientKeyStore().endsWith("/empty.jks"));
assertEquals("password", c.getClientKeyStorePassword());
//The full path gets resolved, we're just checkng that the property got set
assertTrue(c.getTrustStore().endsWith("/empty.jks"));
assertEquals("password", c.getTrustStorePassword());
assertTrue(c.isConnected());
assertTrue(c.isStarted());
assertNull(c.getDefaultProcessMessageAction());
}