@Test public void testNewJDBCReader() { IConfiguration configuration = FACADE_FACTORY.createConfiguration(new Configuration()); IReverseEngineeringStrategy engineeringStrategy = FACADE_FACTORY.createReverseEngineeringStrategy(new DefaultReverseEngineeringStrategy()); IJDBCReader jdbcReaderFacade = service.newJDBCReader(configuration, engineeringStrategy); Assert.assertNotNull(jdbcReaderFacade); JDBCReader reader = (JDBCReader) ((IFacade) jdbcReaderFacade).getTarget(); Assert.assertNotNull(reader); }
@Test public void testNewDatabaseCollector() { Configuration cfg = new Configuration(); IJDBCReader jdbcReader = FACADE_FACTORY.createJDBCReader( JDBCReaderFactory.newJDBCReader( cfg.getProperties(), cfg.buildSettings(), new DefaultReverseEngineeringStrategy())); IDatabaseCollector databaseCollectorFacade = service.newDatabaseCollector(jdbcReader); Assert.assertNotNull(databaseCollectorFacade); DatabaseCollector databaseCollector = (DatabaseCollector) ((IFacade) databaseCollectorFacade).getTarget(); Assert.assertNotNull(databaseCollector); }