use of org.hibernate.tool.hbm2x.QueryExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateQueryExporter.
@Test
public void testCreateQueryExporter() {
QueryExporter queryExporter = new QueryExporter();
IQueryExporter facade = facadeFactory.createQueryExporter(queryExporter);
Assert.assertSame(queryExporter, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.hbm2x.QueryExporter 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.hibernate.tool.hbm2x.QueryExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateQueryExporter.
@Test
public void testCreateQueryExporter() {
QueryExporter queryExporter = new QueryExporter();
IQueryExporter facade = facadeFactory.createQueryExporter(queryExporter);
Assert.assertSame(queryExporter, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.hbm2x.QueryExporter 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.hibernate.tool.hbm2x.QueryExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateQueryExporter.
@Test
public void testCreateQueryExporter() {
QueryExporter queryExporter = new QueryExporter();
IQueryExporter facade = facadeFactory.createQueryExporter(queryExporter);
Assert.assertSame(queryExporter, ((IFacade) facade).getTarget());
}
Aggregations