/**
 * @author effine
 * @Date 2015年11月13日  下午4:29:08
 * @email verphen#gmail.com
 * @site http://www.effine.cn
 */

package cn.effine.test;

import org.apache.ibatis.session.SqlSession;

import cn.effine.dao.AbstractSupportDao;
import cn.effine.model.SigninHistory;

public class SigninHistoryTest {

	public static void getSigninHistory(int id) {
		SqlSession session = AbstractSupportDao.getSqlSession();
		SigninHistory history = session
				.selectOne(
						"cn.effine.ISigninHistoryOperation.selectSigninHistoryByID",
						id);
		session.close();

		System.out.println(history);

	}

	public static void main(String[] args) {
		getSigninHistory(1);
	}
}

@@ -189,16 +189,40 @@
 ession;%0D
+%0Aimport org.junit.Test;%0D
 %0A%0D%0Aimpor
@@ -332,35 +332,36 @@
 yTest %7B%0D%0A%0D%0A%09
-public stat
+@Test%0D%0A%09publ
 ic void getS
@@ -377,14 +377,8 @@
 ory(
-int id
 ) %7B%0D
@@ -471,22 +471,17 @@
  session
-%0D%0A%09%09%09%09
+ 
 .selectO
@@ -483,24 +483,16 @@
 lectOne(
-%0D%0A%09%09%09%09%09%09
 %22cn.effi
@@ -547,18 +547,9 @@
 ID%22,
-%0D%0A%09%09%09%09%09%09id
+1
 );%0D%0A
@@ -568,18 +568,16 @@
 ose();%0D%0A
-%0D%0A
 %09%09System
@@ -609,81 +609,8 @@
 %0A%09%7D%0D
-%0A%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09getSigninHistory(1);%0D%0A%09%7D%0D
 %0A%7D%0D%0A

use junit test success