Search in sources :

Example 6 with IncludeColumn

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());
}
Also used : ReverseEngineering(org.apache.cayenne.dbsync.reverse.dbimport.ReverseEngineering) IncludeTable(org.apache.cayenne.dbsync.reverse.dbimport.IncludeTable) IncludeColumn(org.apache.cayenne.dbsync.reverse.dbimport.IncludeColumn) Test(org.junit.Test)

Example 7 with IncludeColumn

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());
}
Also used : IncludeColumn(org.apache.cayenne.dbsync.reverse.dbimport.IncludeColumn) Test(org.junit.Test)

Aggregations

IncludeColumn (org.apache.cayenne.dbsync.reverse.dbimport.IncludeColumn)7 IncludeTable (org.apache.cayenne.dbsync.reverse.dbimport.IncludeTable)4 Test (org.junit.Test)4 Catalog (org.apache.cayenne.dbsync.reverse.dbimport.Catalog)3 ExcludeColumn (org.apache.cayenne.dbsync.reverse.dbimport.ExcludeColumn)3 ReverseEngineering (org.apache.cayenne.dbsync.reverse.dbimport.ReverseEngineering)3 Schema (org.apache.cayenne.dbsync.reverse.dbimport.Schema)3 ExcludeTable (org.apache.cayenne.dbsync.reverse.dbimport.ExcludeTable)2 ExcludeProcedure (org.apache.cayenne.dbsync.reverse.dbimport.ExcludeProcedure)1 IncludeProcedure (org.apache.cayenne.dbsync.reverse.dbimport.IncludeProcedure)1