use of org.hibernate.cfg.reveng.DatabaseCollector in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateDatabaseCollector.
@Test
public void testCreateDatabaseCollector() {
DatabaseCollector databaseCollector = (DatabaseCollector) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { DatabaseCollector.class }, new TestInvocationHandler());
IDatabaseCollector facade = facadeFactory.createDatabaseCollector(databaseCollector);
Assert.assertSame(databaseCollector, ((IFacade) facade).getTarget());
}
use of org.hibernate.cfg.reveng.DatabaseCollector 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.hibernate.cfg.reveng.DatabaseCollector in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateDatabaseCollector.
@Test
public void testCreateDatabaseCollector() {
DatabaseCollector databaseCollector = (DatabaseCollector) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { DatabaseCollector.class }, new TestInvocationHandler());
IDatabaseCollector facade = facadeFactory.createDatabaseCollector(databaseCollector);
Assert.assertSame(databaseCollector, ((IFacade) facade).getTarget());
}
use of org.hibernate.cfg.reveng.DatabaseCollector in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateDatabaseCollector.
@Test
public void testCreateDatabaseCollector() {
DatabaseCollector databaseCollector = (DatabaseCollector) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { DatabaseCollector.class }, new TestInvocationHandler());
IDatabaseCollector facade = facadeFactory.createDatabaseCollector(databaseCollector);
Assert.assertSame(databaseCollector, ((IFacade) facade).getTarget());
}
use of org.hibernate.cfg.reveng.DatabaseCollector in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateDatabaseCollector.
@Test
public void testCreateDatabaseCollector() {
DatabaseCollector databaseCollector = (DatabaseCollector) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { DatabaseCollector.class }, new TestInvocationHandler());
IDatabaseCollector facade = facadeFactory.createDatabaseCollector(databaseCollector);
Assert.assertSame(databaseCollector, ((IFacade) facade).getTarget());
}
Aggregations