Package org.beangle.notification.notifiers.msn

Source Code of org.beangle.notification.notifiers.msn.MsnNotifierTest

/* Copyright c 2005-2012.
* Licensed under GNU  LESSER General Public License, Version 3.
* http://www.gnu.org/licenses
*/
package org.beangle.notification.notifiers.msn;

import org.codehaus.plexus.msn.DefaultMsnClient;
import org.testng.annotations.Test;

public class MsnNotifierTest {

  @Test
  public void testSend() throws Exception {
    DefaultMsnClient msnClient = new DefaultMsnClient();
    msnClient.enableLogging(new org.codehaus.plexus.logging.console.ConsoleLogger(1, "if"));
    msnClient.setLogin("xx@hotmail.com");
    msnClient.setPassword("bb");

    MsnNotifier notifier = new MsnNotifier();
    notifier.setMsnClient(msnClient);

    // SimpleMessage message = new
    // SimpleMessage("chaostone.duan@hotmail.com", "hello", "hello");
    // notifier.sendMessage(message);
  }
}
TOP

Related Classes of org.beangle.notification.notifiers.msn.MsnNotifierTest

TOP
Copyright © 2018 www.massapi.com. 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.