use of org.jboss.tools.hibernate.runtime.spi.IHibernateMappingExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHibernateMappingExporter.
@Test
public void testCreateHibernateMappingExporter() {
HibernateMappingExporter hibernateMappingExporter = new HibernateMappingExporter();
IHibernateMappingExporter facade = facadeFactory.createHibernateMappingExporter(hibernateMappingExporter);
Assert.assertSame(hibernateMappingExporter, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IHibernateMappingExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHibernateMappingExporter.
@Test
public void testCreateHibernateMappingExporter() {
HibernateMappingExporter hibernateMappingExporter = new HibernateMappingExporter();
IHibernateMappingExporter facade = facadeFactory.createHibernateMappingExporter(hibernateMappingExporter);
Assert.assertSame(hibernateMappingExporter, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IHibernateMappingExporter in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewHibernateMappingExporter.
@Test
public void testNewHibernateMappingExporter() {
IConfiguration configuration = service.newDefaultConfiguration();
File file = new File("");
IHibernateMappingExporter hibernateMappingExporter = service.newHibernateMappingExporter(configuration, file);
Configuration cfg = (Configuration) ((IFacade) configuration).getTarget();
HibernateMappingExporterExtension hmee = (HibernateMappingExporterExtension) ((IFacade) hibernateMappingExporter).getTarget();
Assert.assertSame(file, hmee.getOutputDirectory());
Assert.assertSame(cfg, hmee.getConfiguration());
}
use of org.jboss.tools.hibernate.runtime.spi.IHibernateMappingExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHibernateMappingExporter.
@Test
public void testCreateHibernateMappingExporter() {
HibernateMappingExporter hibernateMappingExporter = new HibernateMappingExporter();
IHibernateMappingExporter facade = facadeFactory.createHibernateMappingExporter(hibernateMappingExporter);
Assert.assertSame(hibernateMappingExporter, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IHibernateMappingExporter in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewHibernateMappingExporter.
@Test
public void testNewHibernateMappingExporter() {
IConfiguration configuration = service.newDefaultConfiguration();
File file = new File("");
IHibernateMappingExporter hibernateMappingExporter = service.newHibernateMappingExporter(configuration, file);
Configuration cfg = (Configuration) ((IFacade) configuration).getTarget();
HibernateMappingExporterExtension hmee = (HibernateMappingExporterExtension) ((IFacade) hibernateMappingExporter).getTarget();
Assert.assertSame(file, hmee.getOutputDirectory());
Assert.assertSame(cfg, hmee.getConfiguration());
}
Aggregations