package com.changhong; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import com.changhong.autoform.core.mapper.BaseMapper; import com.changhong.autoform.entity.sql.Where; import com.changhong.autoform.entity.sql.Where.Conditions; import com.changhong.autoform.entity.sql.Where.Type; import com.changhong.autoform.entity.sql.select.Select; import com.changhong.autoformtest.Application; @RunWith(SpringRunner.class) @SpringBootTest(classes = Application.class) public class Test extends BaseMapper{ @org.junit.Test public void test(){ Select s = new Select("test", new Where(new Conditions("id", Type.EQ, "1")), "name", "password"); System.err.println(selectOne(s)); } }