use of org.hibernate.tool.internal.export.query.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);
assertTrue(facade instanceof QueryExporterFacadeImpl);
assertSame(queryExporter, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.internal.export.query.QueryExporter in project jbosstools-hibernate by jbosstools.
the class QueryExporterFacadeTest method beforeEach.
@BeforeEach
public void beforeEach() {
queryExporterTarget = new QueryExporter();
queryExporterFacade = new QueryExporterFacadeImpl(FACADE_FACTORY, queryExporterTarget);
}
use of org.hibernate.tool.internal.export.query.QueryExporter in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testGetQueryExporter.
@Test
public void testGetQueryExporter() {
IQueryExporter queryExporter = exporterFacade.getQueryExporter();
assertNull(queryExporter);
exporterTarget = new QueryExporter();
exporterFacade = new ExporterFacadeImpl(FACADE_FACTORY, exporterTarget);
queryExporter = exporterFacade.getQueryExporter();
assertNotNull(queryExporter);
assertSame(exporterTarget, ((IFacade) queryExporter).getTarget());
}
Aggregations