Package org.pentaho.platform.plugin.services.email

Examples of org.pentaho.platform.plugin.services.email.EmailService


  public EmailResource() throws IllegalArgumentException {

    emailService = PentahoSystem.get( IEmailService.class, "IEmailService", PentahoSessionHolder.getSession() );

    if ( emailService == null ) {
      emailService = new EmailService();
    }
    init( emailService );
  }
View Full Code Here


    mp = new MicroPlatform();
    mp.defineInstance( IAuthorizationPolicy.class, new TestAuthorizationPolicy() );
    mp.start();

    defaultConfigFile = File.createTempFile( "email_config_", ".xml" );
    this.emailResource = new EmailResource( new EmailService( defaultConfigFile ) );
  }
View Full Code Here

    } catch ( IllegalArgumentException success ) {
      //ignore
    }

    try {
      new EmailResource( new EmailService( new File( defaultConfigFile, "cannot.exist" ) ) );
      fail( "Exception should be thrown when an invalid EmailService is provided" );
    } catch ( IllegalArgumentException success ) {
      //ignore
    }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.plugin.services.email.EmailService

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.