use of org.apache.cayenne.dbsync.reverse.dbimport.IncludeColumn in project cayenne by apache.
the class FiltersConfigBuilderTest method testCompact_01.
@Test
public void testCompact_01() {
ReverseEngineering engineering = new ReverseEngineering();
engineering.addIncludeTable(new IncludeTable("table1"));
engineering.addIncludeTable(new IncludeTable("table2"));
engineering.addIncludeTable(new IncludeTable("table3"));
engineering.addIncludeColumn(new IncludeColumn("includeColumn"));
FiltersConfigBuilder builder = new FiltersConfigBuilder(engineering);
builder.compact();
assertEquals("ReverseEngineering: \n" + " Catalog: null\n" + " Schema: null\n" + " IncludeTable: table1\n" + " IncludeColumn: includeColumn\n" + " IncludeTable: table2\n" + " IncludeColumn: includeColumn\n" + " IncludeTable: table3\n" + " IncludeColumn: includeColumn\n", engineering.toString());
}
use of org.apache.cayenne.dbsync.reverse.dbimport.IncludeColumn in project cayenne by apache.
the class PatternParamTest method toIncludeColumn.
@Test
public void toIncludeColumn() throws Exception {
IncludeColumn table = param.toIncludeColumn();
assertNotNull(table);
assertEquals("test", table.getPattern());
}
Aggregations