mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
improved subquery tests
This commit is contained in:
parent
5b19657b46
commit
12a80408cf
@ -44,7 +44,12 @@ public class SubQueryTest extends AbstractQueryTest{
|
||||
public void ListProjection(){
|
||||
assertToString("(select cat from Cat cat)", sub().from(cat).list(cat));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void ListContains(){
|
||||
assertToString("cat1 in (select cat from Cat cat)", sub().from(cat).list(cat).contains(cat1));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void Exists(){
|
||||
assertToString("exists (select 1 from Cat cat)", sub().from(cat).exists());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user