// Path: src/test/java/com/github/mybatis/entity/Blog.java
// @Table(name = "blog")
// public class Blog extends IdEntity {
//   @Column
//   private String author;
// 
//   @Column
//   private String content;
// 
//   @Column
//   private Date accessDate;
// 
//   public String getAuthor() {
//     return author;
//   }
// 
//   public void setAuthor(String author) {
//     this.author = author;
//   }
// 
//   public String getContent() {
//     return content;
//   }
// 
//   public void setContent(String content) {
//     this.content = content;
//   }
// 
//   public Date getAccessDate() {
//     return accessDate;
//   }
// 
//   public void setAccessDate(Date accessDate) {
//     this.accessDate = accessDate;
//   }
// }
// 
// Path: src/test/java/com/github/mybatis/mapper/BlogMapper.java
// public interface BlogMapper extends ICrudPaginationMapper<Blog> {
//   @Delete("delete from blog")
//   int myDelete();
// 
//   @Select("select count(0) from blog")
//   int myCount();
// 
//   @Update("create table IF NOT EXISTS blog (\n" +
//     "  id int PRIMARY KEY AUTO_INCREMENT NOT NULL,\n" +
//     "  author VARCHAR(60) NOT NULL,\n" +
//     "  content TEXT NOT NULL,\n" +
//     "  access_date TIMESTAMP\n" +
//     ")")
//   int createTable();
// }


import com.github.mybatis.entity.Blog;
import com.github.mybatis.mapper.BlogMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import javax.annotation.PostConstruct;
import java.util.Date;
import static org.junit.Assert.assertTrue;
package com.github.mybatis.spring;




/**
 * 测试autowire
 * Created by lirui on 15/1/7.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:applicationContext.xml"})
public class AutowireTest {
  @Autowired
// Path: src/test/java/com/github/mybatis/entity/Blog.java
// @Table(name = "blog")
// public class Blog extends IdEntity {
//   @Column
//   private String author;
// 
//   @Column
//   private String content;
// 
//   @Column
//   private Date accessDate;
// 
//   public String getAuthor() {
//     return author;
//   }
// 
//   public void setAuthor(String author) {
//     this.author = author;
//   }
// 
//   public String getContent() {
//     return content;
//   }
// 
//   public void setContent(String content) {
//     this.content = content;
//   }
// 
//   public Date getAccessDate() {
//     return accessDate;
//   }
// 
//   public void setAccessDate(Date accessDate) {
//     this.accessDate = accessDate;
//   }
// }
// 
// Path: src/test/java/com/github/mybatis/mapper/BlogMapper.java
// public interface BlogMapper extends ICrudPaginationMapper<Blog> {
//   @Delete("delete from blog")
//   int myDelete();
// 
//   @Select("select count(0) from blog")
//   int myCount();
// 
//   @Update("create table IF NOT EXISTS blog (\n" +
//     "  id int PRIMARY KEY AUTO_INCREMENT NOT NULL,\n" +
//     "  author VARCHAR(60) NOT NULL,\n" +
//     "  content TEXT NOT NULL,\n" +
//     "  access_date TIMESTAMP\n" +
//     ")")
//   int createTable();
// }


// Path: src/test/java/com/github/mybatis/spring/AutowireTest.java
import com.github.mybatis.entity.Blog;
import com.github.mybatis.mapper.BlogMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import javax.annotation.PostConstruct;
import java.util.Date;
import static org.junit.Assert.assertTrue;

package com.github.mybatis.spring;




/**
 * 测试autowire
 * Created by lirui on 15/1/7.
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:applicationContext.xml"})
public class AutowireTest {
  @Autowired
  private BlogMapper mapper;