Search in sources :

Example 1 with QueryExporter

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

Example 2 with QueryExporter

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());
}
Also used : QueryExporter(org.hibernate.tool.hbm2x.QueryExporter) IQueryExporter(org.jboss.tools.hibernate.runtime.spi.IQueryExporter) IQueryExporter(org.jboss.tools.hibernate.runtime.spi.IQueryExporter) Test(org.junit.Test)

Example 3 with QueryExporter

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

Example 4 with QueryExporter

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());
}
Also used : QueryExporter(org.hibernate.tool.hbm2x.QueryExporter) IQueryExporter(org.jboss.tools.hibernate.runtime.spi.IQueryExporter) IQueryExporter(org.jboss.tools.hibernate.runtime.spi.IQueryExporter) Test(org.junit.Test)

Example 5 with QueryExporter

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

Aggregations

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