use of org.qi4j.test.indexing.model.Person in project qi4j-sdk by Qi4j.
the class AbstractQueryTest method script43_LocalDate.
@Test
public void script43_LocalDate() {
QueryBuilder<Person> qb = this.module.newQueryBuilder(Person.class);
Person person = templateFor(Person.class);
Query<Person> query = unitOfWork.newQuery(qb.where(and(gt(person.localDateValue(), new LocalDate("2005-03-04", UTC)), lt(person.localDateValue(), new LocalDate("2015-03-04", UTC)))));
System.out.println("*** script43_LocalDate: " + query);
verifyUnorderedResults(query, "Jack Doe");
}
use of org.qi4j.test.indexing.model.Person in project qi4j-sdk by Qi4j.
the class AbstractQueryTest method script41_LocalDateTime.
@Test
public void script41_LocalDateTime() {
QueryBuilder<Person> qb = this.module.newQueryBuilder(Person.class);
Person person = templateFor(Person.class);
Query<Person> query = unitOfWork.newQuery(qb.where(ne(person.localDateTimeValue(), new LocalDateTime("2010-03-04T13:23:00", UTC))));
System.out.println("*** script41_LocalDateTime: " + query);
verifyUnorderedResults(query, "Joe Doe");
}
use of org.qi4j.test.indexing.model.Person in project qi4j-sdk by Qi4j.
the class AbstractQueryTest method script52_BigInteger.
@Test
public void script52_BigInteger() {
QueryBuilder<Person> qb = this.module.newQueryBuilder(Person.class);
Person person = templateFor(Person.class);
Query<Person> query = unitOfWork.newQuery(qb.where(ge(person.bigInteger(), new BigInteger("23232323232323232323232323"))));
System.out.println("*** script52_BigInteger: " + query);
verifyUnorderedResults(query, "Jack Doe", "Joe Doe");
}
use of org.qi4j.test.indexing.model.Person in project qi4j-sdk by Qi4j.
the class AbstractQueryTest method script52_BigDecimal.
@Test
public void script52_BigDecimal() {
QueryBuilder<Person> qb = this.module.newQueryBuilder(Person.class);
Person person = templateFor(Person.class);
Query<Person> query = unitOfWork.newQuery(qb.where(ge(person.bigDecimal(), new BigDecimal("2342.76931348623157e+307"))));
System.out.println("*** script52_BigDecimal: " + query);
verifyUnorderedResults(query, "Jack Doe", "Joe Doe");
}
use of org.qi4j.test.indexing.model.Person in project qi4j-sdk by Qi4j.
the class AbstractQueryTest method script51_BigInteger.
@Test
public void script51_BigInteger() {
QueryBuilder<Person> qb = this.module.newQueryBuilder(Person.class);
Person person = templateFor(Person.class);
Query<Person> query = unitOfWork.newQuery(qb.where(ne(person.bigInteger(), new BigInteger("23232323232323232323232323"))));
System.out.println("*** script51_BigInteger: " + query);
verifyUnorderedResults(query, "Jack Doe");
}
Aggregations