Search in sources :

Example 11 with IGenericExporter

use of org.jboss.tools.hibernate.runtime.spi.IGenericExporter in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateGenericExporter.

@Test
public void testCreateGenericExporter() {
    GenericExporter genericExporter = new GenericExporter();
    IGenericExporter facade = facadeFactory.createGenericExporter(genericExporter);
    Assert.assertSame(genericExporter, ((IFacade) facade).getTarget());
}
Also used : IGenericExporter(org.jboss.tools.hibernate.runtime.spi.IGenericExporter) GenericExporter(org.hibernate.tool.hbm2x.GenericExporter) IGenericExporter(org.jboss.tools.hibernate.runtime.spi.IGenericExporter) Test(org.junit.Test)

Example 12 with IGenericExporter

use of org.jboss.tools.hibernate.runtime.spi.IGenericExporter in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateGenericExporter.

@Test
public void testCreateGenericExporter() {
    GenericExporter genericExporter = new GenericExporter();
    IGenericExporter facade = facadeFactory.createGenericExporter(genericExporter);
    Assert.assertSame(genericExporter, ((IFacade) facade).getTarget());
}
Also used : IGenericExporter(org.jboss.tools.hibernate.runtime.spi.IGenericExporter) GenericExporter(org.hibernate.tool.hbm2x.GenericExporter) IGenericExporter(org.jboss.tools.hibernate.runtime.spi.IGenericExporter) Test(org.junit.Test)

Example 13 with IGenericExporter

use of org.jboss.tools.hibernate.runtime.spi.IGenericExporter in project jbosstools-hibernate by jbosstools.

the class ExporterFacadeTest method testGetGenericExporter.

@Test
public void testGetGenericExporter() {
    IGenericExporter genericExporter = exporterFacade.getGenericExporter();
    Assert.assertNull(genericExporter);
    exporter = new GenericExporter();
    exporterFacade = new AbstractExporterFacade(FACADE_FACTORY, exporter) {
    };
    genericExporter = exporterFacade.getGenericExporter();
    Assert.assertNotNull(genericExporter);
    Assert.assertSame(exporter, ((IFacade) genericExporter).getTarget());
}
Also used : GenericExporter(org.hibernate.tool.hbm2x.GenericExporter) IGenericExporter(org.jboss.tools.hibernate.runtime.spi.IGenericExporter) IGenericExporter(org.jboss.tools.hibernate.runtime.spi.IGenericExporter) AbstractExporterFacade(org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade) Test(org.junit.Test)

Example 14 with IGenericExporter

use of org.jboss.tools.hibernate.runtime.spi.IGenericExporter in project jbosstools-hibernate by jbosstools.

the class ExporterFacadeTest method testGetGenericExporter.

@Test
public void testGetGenericExporter() {
    IGenericExporter genericExporter = exporterFacade.getGenericExporter();
    Assert.assertNull(genericExporter);
    exporter = new GenericExporter();
    exporterFacade = new AbstractExporterFacade(FACADE_FACTORY, exporter) {
    };
    genericExporter = exporterFacade.getGenericExporter();
    Assert.assertNotNull(genericExporter);
    Assert.assertSame(exporter, ((IFacade) genericExporter).getTarget());
}
Also used : GenericExporter(org.hibernate.tool.hbm2x.GenericExporter) IGenericExporter(org.jboss.tools.hibernate.runtime.spi.IGenericExporter) IGenericExporter(org.jboss.tools.hibernate.runtime.spi.IGenericExporter) AbstractExporterFacade(org.jboss.tools.hibernate.runtime.common.AbstractExporterFacade) Test(org.junit.Test)

Example 15 with IGenericExporter

use of org.jboss.tools.hibernate.runtime.spi.IGenericExporter in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateGenericExporter.

@Test
public void testCreateGenericExporter() {
    GenericExporter genericExporter = new GenericExporter();
    IGenericExporter facade = facadeFactory.createGenericExporter(genericExporter);
    Assert.assertSame(genericExporter, ((IFacade) facade).getTarget());
}
Also used : IGenericExporter(org.jboss.tools.hibernate.runtime.spi.IGenericExporter) GenericExporter(org.hibernate.tool.hbm2x.GenericExporter) IGenericExporter(org.jboss.tools.hibernate.runtime.spi.IGenericExporter) Test(org.junit.Test)

Aggregations

IGenericExporter (org.jboss.tools.hibernate.runtime.spi.IGenericExporter)18 GenericExporter (org.hibernate.tool.hbm2x.GenericExporter)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 IHbm2DDLExporter (org.jboss.tools.hibernate.runtime.spi.IHbm2DDLExporter)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