增加user_setting_map表的外键。
[jibu.git] / plugins / jibu-mail / src / test / java / org / gaixie / jibu / mail / JavaMailSenderTest.java
blob87ca82c44f9482bcac9b4089346fe0e92a649d4e
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 package org.gaixie.jibu.mail;
19 import org.junit.Assert;
20 import org.junit.Before;
21 import org.junit.Test;
23 public class JavaMailSenderTest {
24 private JavaMailSender mailSender;
26 @Before public void setup() throws Exception {
27 mailSender = new JavaMailSender();
30 @Test public void testSendMail() throws Exception {
31 // 打开下面语句的注释,会产生垃圾邮件。
32 // mailSender.sendEmail("test@xxx.com","jibu.gaixie@gmail.com","Test SendMail","I love Jibu.");