mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-16 21:01:10 +08:00
added tests for factory projections
This commit is contained in:
parent
3bc2083637
commit
4238dfb5c4
@ -0,0 +1,30 @@
|
||||
package com.mysema.query.scala
|
||||
|
||||
import com.mysema.query.scala.Conversions._
|
||||
import com.mysema.query.sql.SQLSubQuery
|
||||
|
||||
import com.mysema.query.types._
|
||||
import com.mysema.query.types.path._
|
||||
|
||||
import java.util.Arrays._
|
||||
|
||||
import org.junit.Test
|
||||
import org.junit.Assert._
|
||||
|
||||
class ProjectionTest {
|
||||
|
||||
val person = alias(classOf[Person])
|
||||
|
||||
@Test
|
||||
def QBean(){
|
||||
// FIXME
|
||||
// val bean = new QBean(classOf[Person], person.firstName, person.lastName)
|
||||
}
|
||||
|
||||
@Test
|
||||
def QTuple(){
|
||||
val tuple = new QTuple(person.firstName, person.lastName);
|
||||
assertEquals(asList(person.firstName.~, person.lastName.~), tuple.getArgs);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user