use of com.querydsl.codegen.BeanSerializer in project querydsl by querydsl.
the class MetaDataExporterTest method minimal_configuration_with_bean_prefix.
@Test
public void minimal_configuration_with_bean_prefix() throws SQLException {
MetaDataExporter exporter = new MetaDataExporter();
exporter.setSchemaPattern("PUBLIC");
exporter.setPackageName("test");
exporter.setNamePrefix("");
exporter.setBeanPrefix("Bean");
exporter.setBeanSerializer(new BeanSerializer());
exporter.setTargetFolder(folder.getRoot());
exporter.export(metadata);
assertTrue(new File(folder.getRoot(), "test/DateTest.java").exists());
assertTrue(new File(folder.getRoot(), "test/BeanDateTest.java").exists());
}
use of com.querydsl.codegen.BeanSerializer in project querydsl by querydsl.
the class MetaDataExporterTest method minimal_configuration_with_bean_suffix.
@Test
public void minimal_configuration_with_bean_suffix() throws SQLException {
MetaDataExporter exporter = new MetaDataExporter();
exporter.setSchemaPattern("PUBLIC");
exporter.setPackageName("test");
exporter.setNamePrefix("");
exporter.setBeanSuffix("Bean");
exporter.setBeanSerializer(new BeanSerializer());
exporter.setTargetFolder(folder.getRoot());
exporter.export(metadata);
assertTrue(new File(folder.getRoot(), "test/DateTest.java").exists());
assertTrue(new File(folder.getRoot(), "test/DateTestBean.java").exists());
}
Aggregations