@Test public void testFilteringConfig() throws Exception { DbImporterMojo cdbImport = getCdbImport("config/pom-01.xml"); assertEquals(2, cdbImport.getReverseEngineering().getCatalogs().size()); Iterator<Catalog> iterator = cdbImport.getReverseEngineering().getCatalogs().iterator(); assertEquals("catalog-name-01", iterator.next().getName()); Catalog catalog = iterator.next(); assertEquals("catalog-name-02", catalog.getName()); Iterator<Schema> schemaIterator = catalog.getSchemas().iterator(); assertEquals("schema-name-01", schemaIterator.next().getName()); Schema schema = schemaIterator.next(); assertEquals("schema-name-02", schema.getName()); Iterator<IncludeTable> includeTableIterator = schema.getIncludeTables().iterator(); assertEquals("incTable-01", includeTableIterator.next().getPattern()); IncludeTable includeTable = includeTableIterator.next(); assertEquals("incTable-02", includeTable.getPattern()); assertEquals("includeColumn-01", includeTable.getIncludeColumns().iterator().next().getPattern()); assertEquals("excludeColumn-01", includeTable.getExcludeColumns().iterator().next().getPattern()); assertEquals("includeColumn-02", schema.getIncludeColumns().iterator().next().getPattern()); assertEquals("excludeColumn-02", schema.getExcludeColumns().iterator().next().getPattern()); assertEquals("includeColumn-03", catalog.getIncludeColumns().iterator().next().getPattern()); assertEquals("excludeColumn-03", catalog.getExcludeColumns().iterator().next().getPattern()); schemaIterator = cdbImport.getReverseEngineering().getSchemas().iterator(); schema = schemaIterator.next(); assertEquals("schema-name-03", schema.getName()); schema = schemaIterator.next(); assertEquals("schema-name-04", schema.getName()); includeTableIterator = schema.getIncludeTables().iterator(); assertEquals("incTable-04", includeTableIterator.next().getPattern()); assertEquals("excTable-04", schema.getExcludeTables().iterator().next().getPattern()); includeTable = includeTableIterator.next(); assertEquals("incTable-05", includeTable.getPattern()); assertEquals("includeColumn-04", includeTable.getIncludeColumns().iterator().next().getPattern()); assertEquals("excludeColumn-04", includeTable.getExcludeColumns().iterator().next().getPattern()); assertEquals("includeColumn-04", schema.getIncludeColumns().iterator().next().getPattern()); assertEquals("excludeColumn-04", schema.getExcludeColumns().iterator().next().getPattern()); assertEquals("includeColumn-03", catalog.getIncludeColumns().iterator().next().getPattern()); assertEquals("excludeColumn-03", catalog.getExcludeColumns().iterator().next().getPattern()); }
public ReverseEngineering getReverseEngineering() { return dbImportConfig; }
DbImporterMojo extends AbstractMojo { public ReverseEngineering getReverseEngineering() { return dbImportConfig; } }
DbImporterMojo extends AbstractMojo { public ReverseEngineering getReverseEngineering() { return dbImportConfig; }  }
DbImporterMojo extends AbstractMojo { public ReverseEngineering getReverseEngineering() { return dbImportConfig; }  void execute(); File getMap(); void setMap(final File map); void setDbimport(final ReverseEngineering dbImportConfig); void setDbImport(final ReverseEngineering dbImportConfig); ReverseEngineering getReverseEngineering(); DbImportDataSourceConfig getDataSource(); }
DbImporterMojo extends AbstractMojo { public ReverseEngineering getReverseEngineering() { return dbImportConfig; }  void execute(); File getMap(); void setMap(final File map); void setDbimport(final ReverseEngineering dbImportConfig); void setDbImport(final ReverseEngineering dbImportConfig); ReverseEngineering getReverseEngineering(); DbImportDataSourceConfig getDataSource();  }