Added test utility method

This commit is contained in:
Lukas Eder 2013-05-10 16:46:33 +02:00
parent 2d2aee8561
commit 6fd9704dc0

View File

@ -795,6 +795,15 @@ public abstract class BaseTest<
.fetchOne();
}
/**
* Convenience method to get a book
*/
protected final Result<B> getBooks() {
return create().selectFrom(TBook())
.orderBy(TBook_ID())
.fetch();
}
protected final String zeroDate() {
return new Date(0).toString();
}