mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-06 21:05:50 +08:00
#290 Improve Test
This commit is contained in:
parent
aaf16b722d
commit
4b745b0346
@ -408,6 +408,14 @@ public abstract class AbstractJPATest {
|
||||
query().from(cat).list(new QTuple(cat.id, Expressions.constantAs("abc", new StringPath("const"))));
|
||||
}
|
||||
|
||||
@Test(expected=NullPointerException.class)
|
||||
@NoEclipseLink
|
||||
@NoBatooJPA
|
||||
public void Constant_Hibernate() {
|
||||
//select cat.id, ?1 as const from Cat cat
|
||||
query().from(cat).list(new QTuple(cat.id, Expressions.constantAs("abc", new StringPath("const"))));
|
||||
}
|
||||
|
||||
@Test
|
||||
@NoHibernate
|
||||
public void Constant2() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user