Search in sources :

Example 6 with IHbm2DDLExporter

use of org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter 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 IHbm2DDLExporter

use of org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter 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 IHbm2DDLExporter

use of org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter 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 IHbm2DDLExporter

use of org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter 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 10 with IHbm2DDLExporter

use of org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter 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

IHbm2DDLExporter (org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter)18 Hbm2DDLExporter (org.hibernate.tool.hbm2x.Hbm2DDLExporter)16 Test (org.junit.Test)16 AbstractExporterFacade (org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade)8 Properties (java.util.Properties)2 IExporter (org.jboss.tools.hibernate.runtime.spi.IExporter)2 IGenericExporter (org.jboss.tools.hibernate.runtime.spi.IGenericExporter)2 File (java.io.File)1 InputStream (java.io.InputStream)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 StringTokenizer (java.util.StringTokenizer)1 CoreException (org.eclipse.core.runtime.CoreException)1 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)1 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)1 HibernateConsoleRuntimeException (org.hibernate.console.HibernateConsoleRuntimeException)1 ExporterFactory (org.hibernate.eclipse.console.model.impl.ExporterFactory)1 ExporterAttributes (org.hibernate.eclipse.launch.ExporterAttributes)1 IArtifactCollector (org.jboss.tools.hibernate.runtime.spi.IArtifactCollector)1 IConfiguration (org.jboss.tools.hibernate.runtime.spi.IConfiguration)1