Search in sources :

Example 1 with QueryExporter

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

Example 2 with QueryExporter

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);
}
Also used : QueryExporter(org.hibernate.tool.internal.export.query.QueryExporter) IQueryExporter(org.jboss.tools.hibernate.runtime.spi.IQueryExporter) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 3 with QueryExporter

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

Aggregations

QueryExporter (org.hibernate.tool.internal.export.query.QueryExporter)3 IQueryExporter (org.jboss.tools.hibernate.runtime.spi.IQueryExporter)3 Test (org.junit.jupiter.api.Test)2 BeforeEach (org.junit.jupiter.api.BeforeEach)1