This commit is contained in:
Timo Westkämper 2010-10-24 09:01:07 +00:00
parent 96ef3e51a5
commit 7c28dfb64b
3 changed files with 5 additions and 8 deletions

View File

@ -14,8 +14,6 @@ public class AggregationTest extends AbstractQueryTest{
assertToString("max(cat.bodyWeight)", cat.bodyWeight.max());
assertToString("min(cat.bodyWeight)", cat.bodyWeight.min());
assertToString("avg(cat.bodyWeight)", cat.bodyWeight.avg());
// assertToString("count(*)", Ops.AggOps.COUNT_ALL_AGG_EXPR);
assertToString("count(cat)", cat.count());
assertToString("count(distinct cat)", cat.countDistinct());
}

View File

@ -16,13 +16,10 @@ public class BooleanOperationsTest extends AbstractQueryTest {
@Test
public void BooleanOperations() {
assertToString("cust is null or cat is null", cust.isNull().or(cat.isNull()));
assertToString("cust is null and cat is null", cust.isNull()
.and(cat.isNull()));
assertToString("cust is null and cat is null", cust.isNull().and(cat.isNull()));
assertToString("not (cust is null)", cust.isNull().not());
cat.name.eq(cust.name.firstName).and(
cat.bodyWeight.eq(kitten.bodyWeight));
cat.name.eq(cust.name.firstName).or(
cat.bodyWeight.eq(kitten.bodyWeight));
cat.name.eq(cust.name.firstName).and(cat.bodyWeight.eq(kitten.bodyWeight));
cat.name.eq(cust.name.firstName).or(cat.bodyWeight.eq(kitten.bodyWeight));
}
@Test

View File

@ -32,6 +32,7 @@ public class InnerJoinTest {
subQuery.innerJoin($(alias.getNames()), path);
subQuery.join($(alias.getNames()), path);
subQuery.leftJoin($(alias.getNames()), path);
// TODO : assertions
}
@Test
@ -44,6 +45,7 @@ public class InnerJoinTest {
query.innerJoin($(alias.getNames()), path);
query.join($(alias.getNames()), path);
query.leftJoin($(alias.getNames()), path);
// TODO : assertions
}
}