use of org.jboss.tools.hibernate.runtime.spi.IQueryExporter 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.jboss.tools.hibernate.runtime.spi.IQueryExporter 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.spi.IQueryExporter 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 AbstractExporterFacade(FACADE_FACTORY, exporterTarget) {
};
queryExporter = exporterFacade.getQueryExporter();
assertNotNull(queryExporter);
assertSame(exporterTarget, ((IFacade) queryExporter).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IQueryExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateQueryExporter.
@Test
public void testCreateQueryExporter() {
QueryExporter queryExporter = new QueryExporter();
IQueryExporter facade = facadeFactory.createQueryExporter(queryExporter);
assertSame(queryExporter, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IQueryExporter 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