use of org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testGetQueryExporter.
@Test
public void testGetQueryExporter() {
IQueryExporter queryExporter = exporterFacade.getQueryExporter();
Assert.assertNull(queryExporter);
exporter = new QueryExporter();
exporterFacade = new AbstractExporterFacade(FACADE_FACTORY, exporter) {
};
queryExporter = exporterFacade.getQueryExporter();
Assert.assertNotNull(queryExporter);
Assert.assertSame(exporter, ((IFacade) queryExporter).getTarget());
}
use of org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade 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.common.AbstractExporterFacade in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testGetGenericExporter.
@Test
public void testGetGenericExporter() {
IGenericExporter genericExporter = exporterFacade.getGenericExporter();
Assert.assertNull(genericExporter);
exporter = new GenericExporter();
exporterFacade = new AbstractExporterFacade(FACADE_FACTORY, exporter) {
};
genericExporter = exporterFacade.getGenericExporter();
Assert.assertNotNull(genericExporter);
Assert.assertSame(exporter, ((IFacade) genericExporter).getTarget());
}
use of org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testGetQueryExporter.
@Test
public void testGetQueryExporter() {
IQueryExporter queryExporter = exporterFacade.getQueryExporter();
Assert.assertNull(queryExporter);
exporter = new QueryExporter();
exporterFacade = new AbstractExporterFacade(FACADE_FACTORY, exporter) {
};
queryExporter = exporterFacade.getQueryExporter();
Assert.assertNotNull(queryExporter);
Assert.assertSame(exporter, ((IFacade) queryExporter).getTarget());
}
use of org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade 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