public abstract class QueryBaseTest extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<Long,Integer> |
ageAmounts |
protected Map<String,Integer> |
cityCounters |
protected Map<Long,String> |
longToId |
protected static int |
MAX_AGE |
protected static int |
NUMBER_ENTITIES |
protected DBSessionFactory |
sessionFactory |
protected Map<String,String> |
valueToId |
Modifier | Constructor and Description |
---|---|
protected |
QueryBaseTest(DBSessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
assertResult(int start,
int amount,
QueryResult result) |
protected List<SimpleEntity> |
getEntities(EntityBag bag,
QueryBuilder query) |
protected List<SimpleEntity> |
getEntities(EntityBag bag,
QueryBuilder query,
int start,
int limit) |
protected List<String> |
getEntityValue(List<SimpleEntity> entities,
String property) |
void |
setUp() |
void |
tearDown() |
protected List<SimpleEntity> |
toList(QueryResult result) |
protected static final int NUMBER_ENTITIES
protected static final int MAX_AGE
protected DBSessionFactory sessionFactory
protected QueryBaseTest(DBSessionFactory sessionFactory)
protected List<SimpleEntity> toList(QueryResult result)
protected List<String> assertResult(int start, int amount, QueryResult result)
protected List<String> getEntityValue(List<SimpleEntity> entities, String property)
protected List<SimpleEntity> getEntities(EntityBag bag, QueryBuilder query) throws JasDBStorageException
JasDBStorageException
protected List<SimpleEntity> getEntities(EntityBag bag, QueryBuilder query, int start, int limit) throws JasDBStorageException
JasDBStorageException
Copyright © 2015. All rights reserved.