Search in sources :

Example 16 with Hbm2DDLExporter

use of org.hibernate.tool.hbm2x.Hbm2DDLExporter 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());
}
Also used : IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) Hbm2DDLExporter(org.hibernate.tool.hbm2x.Hbm2DDLExporter) IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) AbstractExporterFacade(org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade) Test(org.junit.Test)

Aggregations

Hbm2DDLExporter (org.hibernate.tool.hbm2x.Hbm2DDLExporter)16 IHbm2DDLExporter (org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter)16 Test (org.junit.Test)16 AbstractExporterFacade (org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade)8