// Path: spring-influxdb-orm-autoconfigure/src/test/java/com/vgerbot/orm/influxdb/test/dao/CensusDao.java
// public interface CensusDao extends InfluxDBDao<CensusMeasurement> {
// 
// 	@InfluxDBSelect("select * from census where scientist = #{scientist}")
// 	public List<CensusMeasurement> selectByScientist(@InfluxDBParam("scientist") String scientist);
// 
// 	@InfluxDBExecute("DROP SERIES FROM census where scientist=#{scientist} and location=#{location}")
// 	public void deleteSeries( //
//                               @InfluxDBParam("scientist") String scientist, //
//                               @InfluxDBParam("location") Integer location //
//     );
// 
// 	@InfluxDBSelect("select scientist,location,butterflies from census where scientist = #{scientist}")
// 	public List<Map<String, Integer>> selectButterflies( //
//                                                          @InfluxDBParam("scientist") String scientist, //
//                                                          @InfluxDBParam("location") Integer location //
//     );
// 
// 	@SpecifiedExecutor(HelloWorldExecutor.class)
// 	public void hello();
// 
// 	@InfluxQL
// 	public List<Map<String, Object>> findByScientist(@InfluxDBParam("scientist") String scientist);
// 
// 	class HelloWorldExecutor extends Executor {
// 
// 		public HelloWorldExecutor(InfluxDBRepository repository) {
// 			super(repository);
// 		}
// 
// 		@Override
// 		public ResultContext execute(MapperMethod method, Map<String, ParameterValue> parameters) {
// 			System.out.println("hello world");
// 			return ResultContext.VOID;
// 		}
// 	}
// }
// 
// Path: spring-influxdb-orm-autoconfigure/src/test/java/com/vgerbot/orm/influxdb/test/entity/CensusMeasurement.java
// @InfluxDBMeasurement("census")
// public class CensusMeasurement implements Serializable {
// 	private static final long serialVersionUID = 8260424450884444916L;
// 
// 	private Date time;
// 
// 	@TagColumn("location")
// 	private String location;
// 	@TagColumn("scientist")
// 	private String scientist;
// 
// 	@FieldColumn("butterflies")
// 	private Integer butterflies;
// 	@FieldColumn("honeybees")
// 	private Integer honeybees;
// 
// 	public Date getTime() {
// 		return time;
// 	}
// 
// 	public void setTime(Date time) {
// 		this.time = time;
// 	}
// 
// 	public String getLocation() {
// 		return location;
// 	}
// 
// 	public void setLocation(String location) {
// 		this.location = location;
// 	}
// 
// 	public String getScientist() {
// 		return scientist;
// 	}
// 
// 	public void setScientist(String scientist) {
// 		this.scientist = scientist;
// 	}
// 
// 	public Integer getButterflies() {
// 		return butterflies;
// 	}
// 
// 	public void setButterflies(Integer butterflies) {
// 		this.butterflies = butterflies;
// 	}
// 
// 	public Integer getHoneybees() {
// 		return honeybees;
// 	}
// 
// 	public void setHoneybees(Integer honeybees) {
// 		this.honeybees = honeybees;
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		final int prime = 31;
// 		int result = 1;
// 		result = prime * result + ((location == null) ? 0 : location.hashCode());
// 		result = prime * result + ((scientist == null) ? 0 : scientist.hashCode());
// 		result = prime * result + ((time == null) ? 0 : time.hashCode());
// 		return result;
// 	}
// 
// 	@Override
// 	public boolean equals(Object obj) {
// 		if (this == obj) {
// 			return true;
// 		}
// 		if (obj == null) {
// 			return false;
// 		}
// 		if (getClass() != obj.getClass()) {
// 			return false;
// 		}
// 		CensusMeasurement other = (CensusMeasurement) obj;
// 		if (location == null) {
// 			if (other.location != null) {
// 				return false;
// 			}
// 		} else if (!location.equals(other.location)) {
// 			return false;
// 		}
// 		if (scientist == null) {
// 			if (other.scientist != null) {
// 				return false;
// 			}
// 		} else if (!scientist.equals(other.scientist)) {
// 			return false;
// 		}
// 		if (time == null) {
// 			if (other.time != null) {
// 				return false;
// 			}
// 		} else if (!time.equals(other.time)) {
// 			return false;
// 		}
// 		return true;
// 	}
// 
// 	public String toString() {
// 		return "[time: " + time.getTime() + ", location: " + location + ", scientist: " + scientist + ", butterflies: " + butterflies
// 				+ ", honeybees: " + honeybees + "]";
// 	}
// }


import com.vgerbot.orm.influxdb.test.dao.CensusDao;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import com.vgerbot.orm.influxdb.test.entity.CensusMeasurement;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
import java.util.List;
package com.vgerbot.orm.influxdb.test.testcase;





@RunWith(SpringRunner.class)
@SpringBootTest
@FixMethodOrder(value= MethodSorters.NAME_ASCENDING)
public class TestCase {
    @Resource
    private CensusDao dao;

    @Test
    public void test1DaoNotNull() {
        assertThat(dao, notNullValue());
    }

    @Test
    public void test2Query() {
// Path: spring-influxdb-orm-autoconfigure/src/test/java/com/vgerbot/orm/influxdb/test/dao/CensusDao.java
// public interface CensusDao extends InfluxDBDao<CensusMeasurement> {
// 
// 	@InfluxDBSelect("select * from census where scientist = #{scientist}")
// 	public List<CensusMeasurement> selectByScientist(@InfluxDBParam("scientist") String scientist);
// 
// 	@InfluxDBExecute("DROP SERIES FROM census where scientist=#{scientist} and location=#{location}")
// 	public void deleteSeries( //
//                               @InfluxDBParam("scientist") String scientist, //
//                               @InfluxDBParam("location") Integer location //
//     );
// 
// 	@InfluxDBSelect("select scientist,location,butterflies from census where scientist = #{scientist}")
// 	public List<Map<String, Integer>> selectButterflies( //
//                                                          @InfluxDBParam("scientist") String scientist, //
//                                                          @InfluxDBParam("location") Integer location //
//     );
// 
// 	@SpecifiedExecutor(HelloWorldExecutor.class)
// 	public void hello();
// 
// 	@InfluxQL
// 	public List<Map<String, Object>> findByScientist(@InfluxDBParam("scientist") String scientist);
// 
// 	class HelloWorldExecutor extends Executor {
// 
// 		public HelloWorldExecutor(InfluxDBRepository repository) {
// 			super(repository);
// 		}
// 
// 		@Override
// 		public ResultContext execute(MapperMethod method, Map<String, ParameterValue> parameters) {
// 			System.out.println("hello world");
// 			return ResultContext.VOID;
// 		}
// 	}
// }
// 
// Path: spring-influxdb-orm-autoconfigure/src/test/java/com/vgerbot/orm/influxdb/test/entity/CensusMeasurement.java
// @InfluxDBMeasurement("census")
// public class CensusMeasurement implements Serializable {
// 	private static final long serialVersionUID = 8260424450884444916L;
// 
// 	private Date time;
// 
// 	@TagColumn("location")
// 	private String location;
// 	@TagColumn("scientist")
// 	private String scientist;
// 
// 	@FieldColumn("butterflies")
// 	private Integer butterflies;
// 	@FieldColumn("honeybees")
// 	private Integer honeybees;
// 
// 	public Date getTime() {
// 		return time;
// 	}
// 
// 	public void setTime(Date time) {
// 		this.time = time;
// 	}
// 
// 	public String getLocation() {
// 		return location;
// 	}
// 
// 	public void setLocation(String location) {
// 		this.location = location;
// 	}
// 
// 	public String getScientist() {
// 		return scientist;
// 	}
// 
// 	public void setScientist(String scientist) {
// 		this.scientist = scientist;
// 	}
// 
// 	public Integer getButterflies() {
// 		return butterflies;
// 	}
// 
// 	public void setButterflies(Integer butterflies) {
// 		this.butterflies = butterflies;
// 	}
// 
// 	public Integer getHoneybees() {
// 		return honeybees;
// 	}
// 
// 	public void setHoneybees(Integer honeybees) {
// 		this.honeybees = honeybees;
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		final int prime = 31;
// 		int result = 1;
// 		result = prime * result + ((location == null) ? 0 : location.hashCode());
// 		result = prime * result + ((scientist == null) ? 0 : scientist.hashCode());
// 		result = prime * result + ((time == null) ? 0 : time.hashCode());
// 		return result;
// 	}
// 
// 	@Override
// 	public boolean equals(Object obj) {
// 		if (this == obj) {
// 			return true;
// 		}
// 		if (obj == null) {
// 			return false;
// 		}
// 		if (getClass() != obj.getClass()) {
// 			return false;
// 		}
// 		CensusMeasurement other = (CensusMeasurement) obj;
// 		if (location == null) {
// 			if (other.location != null) {
// 				return false;
// 			}
// 		} else if (!location.equals(other.location)) {
// 			return false;
// 		}
// 		if (scientist == null) {
// 			if (other.scientist != null) {
// 				return false;
// 			}
// 		} else if (!scientist.equals(other.scientist)) {
// 			return false;
// 		}
// 		if (time == null) {
// 			if (other.time != null) {
// 				return false;
// 			}
// 		} else if (!time.equals(other.time)) {
// 			return false;
// 		}
// 		return true;
// 	}
// 
// 	public String toString() {
// 		return "[time: " + time.getTime() + ", location: " + location + ", scientist: " + scientist + ", butterflies: " + butterflies
// 				+ ", honeybees: " + honeybees + "]";
// 	}
// }


// Path: spring-influxdb-orm-autoconfigure/src/test/java/com/vgerbot/orm/influxdb/test/testcase/TestCase.java
import com.vgerbot.orm.influxdb.test.dao.CensusDao;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import com.vgerbot.orm.influxdb.test.entity.CensusMeasurement;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
import java.util.List;

package com.vgerbot.orm.influxdb.test.testcase;





@RunWith(SpringRunner.class)
@SpringBootTest
@FixMethodOrder(value= MethodSorters.NAME_ASCENDING)
public class TestCase {
    @Resource
    private CensusDao dao;

    @Test
    public void test1DaoNotNull() {
        assertThat(dao, notNullValue());
    }

    @Test
    public void test2Query() {
        List<CensusMeasurement> scientists = dao.selectByScientist("lanstroth");