mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
This commit is contained in:
parent
96ef3e51a5
commit
7c28dfb64b
@ -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());
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user