Map<String, Annotations> annotations = Maps.newHashMap(); PropertyHandling.Config config = propertyHandling.getConfig(cl);
@Test public void export_propertyHandling() throws IOException { for (PropertyHandling ph : PropertyHandling.values()) { File f = folder.newFolder(); GenericExporter e = new GenericExporter(); e.setTargetFolder(f); e.setPropertyHandling(ph); e.export(getClass().getPackage()); assertTrue(new File(f, "com/querydsl/codegen/QExampleEmbeddable.java").exists()); assertTrue(new File(f, "com/querydsl/codegen/QExampleEntity.java").exists()); assertTrue(new File(f, "com/querydsl/codegen/QExampleEntityInterface.java").exists()); assertTrue(new File(f, "com/querydsl/codegen/QExampleSupertype.java").exists()); assertTrue(new File(f, "com/querydsl/codegen/sub/QExampleEntity2.java").exists()); } }
@Test public void export_propertyHandling() throws IOException { for (PropertyHandling ph : PropertyHandling.values()) { File f = folder.newFolder(); GenericExporter e = new GenericExporter(); e.setTargetFolder(f); e.setPropertyHandling(ph); e.export(getClass().getPackage()); assertTrue(new File(f, "com/querydsl/codegen/QExampleEmbeddable.java").exists()); assertTrue(new File(f, "com/querydsl/codegen/QExampleEntity.java").exists()); assertTrue(new File(f, "com/querydsl/codegen/QExampleEntityInterface.java").exists()); assertTrue(new File(f, "com/querydsl/codegen/QExampleSupertype.java").exists()); assertTrue(new File(f, "com/querydsl/codegen/sub/QExampleEntity2.java").exists()); } }