// Path: src/main/java/net/canadensys/dataportal/vascan/model/RankModel.java
// @Entity
// @Table(name="rank")
// public class RankModel{
// 	private int			id;
// 	private	String		rank;
// 	private int			sort;
// 	
// 	@Id
// 	@GeneratedValue(strategy=GenerationType.AUTO)
// 	public int getId() {
// 		return id;
// 	}
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// 
// 	public int getSort(){
// 		return sort;
// 	}
// 	public void setSort(int sort){
// 		this.sort = sort;
// 	}
// 	
// 	/**
// 	 * 
// 	 * @return the rank name
// 	 */
// 	public String getRank(){
// 		return rank;
// 	}
// 	/**
// 	 * 
// 	 * @param rank the rank name
// 	 */
// 	public void setRank(String rank){
// 		this.rank = rank;
// 	}
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import javax.transaction.Transactional;
import net.canadensys.dataportal.vascan.model.RankModel;
import org.hibernate.ScrollableResults;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.exception.GenericJDBCException;
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 org.springframework.test.context.transaction.TransactionConfiguration;
package net.canadensys.databaseutils;





/**
 * Test ScrollableResultsIteratorWrapper implementation
 * @author cgendreau
 *
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "/vascan/vascan-test-context.xml" })
@TransactionConfiguration(transactionManager="hibernateTransactionManager")
public class ScrollableResultsIteratorWrapperTest {
	
	@Autowired
	private SessionFactory sessionFactory;
	
	@Test
	@Transactional
	public void testScrollableResultsIteratorWrapperHasNext(){
		Session hibernateSession = sessionFactory.getCurrentSession();
// Path: src/main/java/net/canadensys/dataportal/vascan/model/RankModel.java
// @Entity
// @Table(name="rank")
// public class RankModel{
// 	private int			id;
// 	private	String		rank;
// 	private int			sort;
// 	
// 	@Id
// 	@GeneratedValue(strategy=GenerationType.AUTO)
// 	public int getId() {
// 		return id;
// 	}
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// 
// 	public int getSort(){
// 		return sort;
// 	}
// 	public void setSort(int sort){
// 		this.sort = sort;
// 	}
// 	
// 	/**
// 	 * 
// 	 * @return the rank name
// 	 */
// 	public String getRank(){
// 		return rank;
// 	}
// 	/**
// 	 * 
// 	 * @param rank the rank name
// 	 */
// 	public void setRank(String rank){
// 		this.rank = rank;
// 	}
// }


// Path: src/test/java/net/canadensys/databaseutils/ScrollableResultsIteratorWrapperTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import javax.transaction.Transactional;
import net.canadensys.dataportal.vascan.model.RankModel;
import org.hibernate.ScrollableResults;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.exception.GenericJDBCException;
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 org.springframework.test.context.transaction.TransactionConfiguration;

package net.canadensys.databaseutils;





/**
 * Test ScrollableResultsIteratorWrapper implementation
 * @author cgendreau
 *
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "/vascan/vascan-test-context.xml" })
@TransactionConfiguration(transactionManager="hibernateTransactionManager")
public class ScrollableResultsIteratorWrapperTest {
	
	@Autowired
	private SessionFactory sessionFactory;
	
	@Test
	@Transactional
	public void testScrollableResultsIteratorWrapperHasNext(){
		Session hibernateSession = sessionFactory.getCurrentSession();
		ScrollableResults sr = hibernateSession.createCriteria(RankModel.class).scroll();