Package com.tll.di

Examples of com.tll.di.MailModule


  protected void addModules(List<Module> modules) {
    modules.add(new RefDataModule());

    // hack: create mail module to avoid guice ConfigurationException
    // as it implicitly binds at the MailModule constrctor
    modules.add(new MailModule(Config.load(new ConfigRef("config-mail.properties"))));

    modules.add(new TestPersistenceUnitModelModule());
    modules.add(new TestDb4oDaoModule(getConfig()));
    modules.add(new Db4oDbShellModule());
    modules.add(new TestEntityServiceFactoryModule());
View Full Code Here


  protected void addModules(List<Module> modules) {
    modules.add(new RefDataModule());

    // hack: create mail module to avoid guice ConfigurationException
    // as it implicitly binds at the MailModule constrctor
    modules.add(new MailModule(Config.load(new ConfigRef("config-mail.properties"))));

    modules.add(new TestPersistenceUnitModelModule());
    modules.add(new TestDb4oDaoModule(getConfig()));
    modules.add(new Db4oDbShellModule());
    modules.add(new TestEntityServiceFactoryModule());
View Full Code Here

   */
  public void test() throws Exception {
    Config c = Config.load();
    Injector i;
    try {
      i = Guice.createInjector(Stage.DEVELOPMENT, new MailModule(c));
    }
    catch(Throwable t) {
      throw new Exception(t.getMessage());
    }
    MailManager m = i.getInstance(MailManager.class);
View Full Code Here

  private MailRouting mailRouting;

  @BeforeClass(groups = "mail")
  protected void onSetUp() throws Exception {
    config = Config.load();
    Injector injector = Guice.createInjector(new MailModule(config), new VelocityModule());
    mailManager = injector.getInstance(MailManager.class);
    Assert.assertNotNull(mailManager, "Unable to obtain the MailManager bean from the application context.");

    NameEmail sendEmail = new NameEmail("jopaki-send", "jopaki@gmail.com");
    NameEmail rcvEmail = new NameEmail("jopaki-recieve", "jopaki@gmail.com");
View Full Code Here

TOP

Related Classes of com.tll.di.MailModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.