mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
added tests
This commit is contained in:
parent
021fbef4e5
commit
adc5d95972
@ -132,6 +132,14 @@ public class JavaWriterTest {
|
||||
match("/testInterface2", w.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void Interface3() throws IOException{
|
||||
writer.beginInterface(testType, testType2, testInterface1, testInterface2);
|
||||
writer.end();
|
||||
|
||||
assertTrue(w.toString().contains("public interface JavaWriterTest extends Test, TestInterface1, TestInterface2 {"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void Javadoc() throws IOException{
|
||||
writer.packageDecl("com.mysema.codegen");
|
||||
@ -294,6 +302,13 @@ public class JavaWriterTest {
|
||||
match("/testImports2", w.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void Imports3() throws IOException{
|
||||
writer.importClasses("java.util.Locale");
|
||||
|
||||
assertTrue(w.toString().contains("import java.util.Locale;"));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void SuppressWarnings() throws IOException{
|
||||
|
||||
@ -52,6 +52,11 @@ public class ClassTypeTest {
|
||||
assertFalse(mapType.isPrimitive());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void GetComponentType(){
|
||||
assertEquals("java.lang.String", new ClassType(String[].class).getComponentType().getFullName());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void Primitive_Arrays(){
|
||||
ClassType byteArray = new ClassType(byte[].class);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user