use of org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testGetHbm2DDLExporter.
@Test
public void testGetHbm2DDLExporter() {
IHbm2DDLExporter hbm2DDLExporter = exporterFacade.getHbm2DDLExporter();
Assert.assertNull(hbm2DDLExporter);
exporter = new Hbm2DDLExporter();
exporterFacade = new AbstractExporterFacade(FACADE_FACTORY, exporter) {
};
hbm2DDLExporter = exporterFacade.getHbm2DDLExporter();
Assert.assertNotNull(hbm2DDLExporter);
Assert.assertSame(exporter, ((IFacade) hbm2DDLExporter).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHbm2DDLExporter.
@Test
public void testCreateHbm2DDLExporter() {
Hbm2DDLExporter hbm2ddlExporter = new Hbm2DDLExporter();
IHbm2DDLExporter facade = facadeFactory.createHbm2DDLExporter(hbm2ddlExporter);
Assert.assertSame(hbm2ddlExporter, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testGetHbm2DDLExporter.
@Test
public void testGetHbm2DDLExporter() {
IHbm2DDLExporter hbm2DDLExporter = exporterFacade.getHbm2DDLExporter();
Assert.assertNull(hbm2DDLExporter);
exporter = new Hbm2DDLExporter();
exporterFacade = new AbstractExporterFacade(FACADE_FACTORY, exporter) {
};
hbm2DDLExporter = exporterFacade.getHbm2DDLExporter();
Assert.assertNotNull(hbm2DDLExporter);
Assert.assertSame(exporter, ((IFacade) hbm2DDLExporter).getTarget());
}
Aggregations