use of org.jboss.tools.hibernate.runtime.spi.IJDBCReader in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewJDBCReader.
@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);
}
use of org.jboss.tools.hibernate.runtime.spi.IJDBCReader in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewDatabaseCollector.
@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);
}
use of org.jboss.tools.hibernate.runtime.spi.IJDBCReader in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateJDBCReader.
@Test
public void testCreateJDBCReader() {
JDBCReader jdbcReader = new JDBCReader(null, null, null, null, null, new DefaultReverseEngineeringStrategy());
IJDBCReader facade = facadeFactory.createJDBCReader(jdbcReader);
Assert.assertSame(jdbcReader, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IJDBCReader in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewDatabaseCollector.
@Test
public void testNewDatabaseCollector() {
IJDBCReader jdbcReader = FACADE_FACTORY.createJDBCReader(JDBCReaderFactory.newJDBCReader(new Configuration().getProperties(), new DefaultReverseEngineeringStrategy(), new StandardServiceRegistryBuilder().build()));
IDatabaseCollector databaseCollectorFacade = service.newDatabaseCollector(jdbcReader);
Assert.assertNotNull(databaseCollectorFacade);
DatabaseCollector databaseCollector = (DatabaseCollector) ((IFacade) databaseCollectorFacade).getTarget();
Assert.assertNotNull(databaseCollector);
}
use of org.jboss.tools.hibernate.runtime.spi.IJDBCReader in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewDatabaseCollector.
@Test
public void testNewDatabaseCollector() {
Configuration cfg = new Configuration();
ServiceRegistry sr = new ServiceRegistryBuilder().buildServiceRegistry();
IJDBCReader jdbcReader = FACADE_FACTORY.createJDBCReader(JDBCReaderFactory.newJDBCReader(cfg.getProperties(), cfg.buildSettings(sr), new DefaultReverseEngineeringStrategy(), sr));
IDatabaseCollector databaseCollectorFacade = service.newDatabaseCollector(jdbcReader);
Assert.assertNotNull(databaseCollectorFacade);
DatabaseCollector databaseCollector = (DatabaseCollector) ((IFacade) databaseCollectorFacade).getTarget();
Assert.assertNotNull(databaseCollector);
}
Aggregations