Search in sources :

Example 6 with Hbm2DDLExporter

use of org.hibernate.tool.hbm2x.Hbm2DDLExporter in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateHbm2DDLExporter.

@Test
public void testCreateHbm2DDLExporter() {
    Hbm2DDLExporter hbm2ddlExporter = new Hbm2DDLExporter();
    IHbm2DDLExporter facade = facadeFactory.createHbm2DDLExporter(hbm2ddlExporter);
    Assert.assertSame(hbm2ddlExporter, ((IFacade) facade).getTarget());
}
Also used : IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) Hbm2DDLExporter(org.hibernate.tool.hbm2x.Hbm2DDLExporter) IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) Test(org.junit.Test)

Example 7 with Hbm2DDLExporter

use of org.hibernate.tool.hbm2x.Hbm2DDLExporter in project jbosstools-hibernate by jbosstools.

the class ExporterFacadeTest method testGetHbm2DDLExporter.

@Test
public void testGetHbm2DDLExporter() {
    IHbm2DDLExporter hbm2DDLExporter = exporterFacade.getHbm2DDLExporter();
    Assert.assertNull(hbm2DDLExporter);
    exporter = new Hbm2DDLExporter();
    exporterFacade = new AbstractExporterFacade(FACADE_FACTORY, exporter) {
    };
    hbm2DDLExporter = exporterFacade.getHbm2DDLExporter();
    Assert.assertNotNull(hbm2DDLExporter);
    Assert.assertSame(exporter, ((IFacade) hbm2DDLExporter).getTarget());
}
Also used : IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) Hbm2DDLExporter(org.hibernate.tool.hbm2x.Hbm2DDLExporter) IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) AbstractExporterFacade(org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade) Test(org.junit.Test)

Example 8 with Hbm2DDLExporter

use of org.hibernate.tool.hbm2x.Hbm2DDLExporter in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateHbm2DDLExporter.

@Test
public void testCreateHbm2DDLExporter() {
    Hbm2DDLExporter hbm2ddlExporter = new Hbm2DDLExporter();
    IHbm2DDLExporter facade = facadeFactory.createHbm2DDLExporter(hbm2ddlExporter);
    Assert.assertSame(hbm2ddlExporter, ((IFacade) facade).getTarget());
}
Also used : IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) Hbm2DDLExporter(org.hibernate.tool.hbm2x.Hbm2DDLExporter) IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) Test(org.junit.Test)

Example 9 with Hbm2DDLExporter

use of org.hibernate.tool.hbm2x.Hbm2DDLExporter in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateHbm2DDLExporter.

@Test
public void testCreateHbm2DDLExporter() {
    Hbm2DDLExporter hbm2ddlExporter = new Hbm2DDLExporter();
    IHbm2DDLExporter facade = facadeFactory.createHbm2DDLExporter(hbm2ddlExporter);
    Assert.assertSame(hbm2ddlExporter, ((IFacade) facade).getTarget());
}
Also used : IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) Hbm2DDLExporter(org.hibernate.tool.hbm2x.Hbm2DDLExporter) IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) Test(org.junit.Test)

Example 10 with Hbm2DDLExporter

use of org.hibernate.tool.hbm2x.Hbm2DDLExporter in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateHbm2DDLExporter.

@Test
public void testCreateHbm2DDLExporter() {
    Hbm2DDLExporter hbm2ddlExporter = new Hbm2DDLExporter();
    IHbm2DDLExporter facade = facadeFactory.createHbm2DDLExporter(hbm2ddlExporter);
    Assert.assertSame(hbm2ddlExporter, ((IFacade) facade).getTarget());
}
Also used : IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) Hbm2DDLExporter(org.hibernate.tool.hbm2x.Hbm2DDLExporter) IHbm2DDLExporter(org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter) Test(org.junit.Test)

Aggregations

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