From 4f410bd4f902d69f013e1500d9dd4cb0670cbaa8 Mon Sep 17 00:00:00 2001 From: isea533 Date: Mon, 22 Jan 2018 21:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0MIT=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=EF=BC=8C=E6=8C=87=E5=AE=9Ajavadoc=E7=89=88=E6=9C=AC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 1 + .../mapper/test/weekend/WeekendSqlsTest.java | 39 ++++++++++++------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/pom.xml b/pom.xml index 0ed352d2f..711129817 100644 --- a/pom.xml +++ b/pom.xml @@ -222,6 +222,7 @@ org.apache.maven.plugins maven-javadoc-plugin + 2.9 package diff --git a/src/test/java/tk/mybatis/mapper/test/weekend/WeekendSqlsTest.java b/src/test/java/tk/mybatis/mapper/test/weekend/WeekendSqlsTest.java index e6065f6d8..7d7266850 100644 --- a/src/test/java/tk/mybatis/mapper/test/weekend/WeekendSqlsTest.java +++ b/src/test/java/tk/mybatis/mapper/test/weekend/WeekendSqlsTest.java @@ -1,17 +1,28 @@ -package tk.mybatis.mapper.test.weekend; - /* -import org.apache.ibatis.session.SqlSession; -import org.junit.Assert; -import tk.mybatis.mapper.entity.Example; -import tk.mybatis.mapper.mapper.CountryMapper; -import tk.mybatis.mapper.mapper.MybatisHelper; -import tk.mybatis.mapper.model.Country; -import tk.mybatis.mapper.util.Sqls; -import tk.mybatis.mapper.weekend.WeekendSqls; + * The MIT License (MIT) + * + * Copyright (c) 2014-2017 abel533@gmail.com + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ -import java.util.List; -*/ +package tk.mybatis.mapper.test.weekend; /** * 测试WeekendSql构建者模式类 由于方法引用需要jdk8 @@ -31,8 +42,8 @@ * @author XuYin */ public class WeekendSqlsTest { - //@Test /* + @Test public void testWeekend() { SqlSession sqlSession = MybatisHelper.getSqlSession(); try { @@ -48,7 +59,7 @@ public void testWeekend() { } } - //@Test + @Test public void testWeekendComplex() { SqlSession sqlSession = MybatisHelper.getSqlSession(); try {