use of org.jboss.tools.hibernate.runtime.spi.IExporter in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testCreateExporter.
@Test
public void testCreateExporter() {
IExporter exporter = service.createExporter("org.hibernate.tool.hbm2x.POJOExporter");
Assert.assertNotNull(exporter);
Object target = ((IFacade) exporter).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof POJOExporter);
}
use of org.jboss.tools.hibernate.runtime.spi.IExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateExporter.
@Test
public void testCreateExporter() {
Exporter exporter = (Exporter) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { Exporter.class }, new TestInvocationHandler());
IExporter facade = facadeFactory.createExporter(exporter);
Assert.assertSame(exporter, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateExporter.
@Test
public void testCreateExporter() {
Exporter exporter = (Exporter) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { Exporter.class }, new TestInvocationHandler());
IExporter facade = facadeFactory.createExporter(exporter);
Assert.assertSame(exporter, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IExporter in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateExporter.
@Test
public void testCreateExporter() {
Exporter exporter = (Exporter) Proxy.newProxyInstance(facadeFactory.getClassLoader(), new Class[] { Exporter.class }, new TestInvocationHandler());
IExporter facade = facadeFactory.createExporter(exporter);
Assert.assertSame(exporter, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.IExporter in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testCreateExporter.
@Test
public void testCreateExporter() {
IExporter exporter = service.createExporter("org.hibernate.tool.hbm2x.POJOExporter");
Assert.assertNotNull(exporter);
Object target = ((IFacade) exporter).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof POJOExporter);
}
Aggregations