public void givenGtAndOrderByQueryWhenExecutedThenReturnCorrect()
throws EntityFinderException
{
QueryBuilder<Nameable> qb = qbf.newQueryBuilder( Nameable.class );
// should return all Nameable entities with a name > "D" sorted by name
Nameable nameable = templateFor( Nameable.class );
Query<Nameable> query = qb.where(
gt( nameable.name(), "D" )
).newQuery( Network.nameables() );
query.orderBy( orderBy( nameable.name() ) );
verifyOrderedResults(
query,
"Gaming", "Jack Doe", "Joe Doe", "Kuala Lumpur", "Penang", "Programming", "Vivian Smith"
);
}