class WhereTransformAppliedSpec extends GrailsDataTckSpec
Proves that where-query closures in the TCK sources were rewritten into criteria at compile time.
Without the where-query AST transformation a closure such as { bar == null } compiles to a plain
comparison that builds no criterion, and a query asserted only by its result can pass without the
criteria translation being exercised. Reading the criteria the query holds fails by name instead.
| Properties inherited from class | Properties |
|---|---|
class GrailsDataTckSpec |
manager |
| Constructor and description |
|---|
WhereTransformAppliedSpec() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
a comparison with a value becomes a #type criterion() |
|
void |
a comparison with null becomes an IsNull criterion() |
|
void |
an inequality with null becomes an IsNotNull criterion() |
|
void |
setupSpec() |
|
void |
the criteria are built when the query is declared, before any datastore is touched() |
| Methods inherited from class | Name |
|---|---|
class GrailsDataTckSpec |
cleanup, cleanupSpec, setup, setupSpec |