mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
This commit is contained in:
parent
d02c6befcc
commit
6109920b77
@ -21,6 +21,10 @@ public class EConstructorTest {
|
||||
public Projection(long id, String text){
|
||||
|
||||
}
|
||||
|
||||
public Projection(CharSequence text){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -53,4 +57,11 @@ public class EConstructorTest {
|
||||
assertEquals(0, c.getParameterTypes().length);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_create4(){
|
||||
EString stringVal = EStringConst.create("");
|
||||
Constructor<?> c = EConstructor.create(Projection.class, stringVal).getJavaConstructor();
|
||||
assertEquals(CharSequence.class, c.getParameterTypes()[0]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user