use of org.jboss.tools.hibernate.runtime.spi.ICfg2HbmTool in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateCfg2HbmTool.
@Test
public void testCreateCfg2HbmTool() {
Cfg2HbmTool cfg2HbmTool = new Cfg2HbmTool();
ICfg2HbmTool facade = facadeFactory.createCfg2HbmTool(cfg2HbmTool);
Assert.assertSame(cfg2HbmTool, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.ICfg2HbmTool in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewCfg2HbmTool.
@Test
public void testNewCfg2HbmTool() {
ICfg2HbmTool cfg2HbmTool = service.newCfg2HbmTool();
Assert.assertNotNull(cfg2HbmTool);
Object target = ((IFacade) cfg2HbmTool).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof Cfg2HbmTool);
}
use of org.jboss.tools.hibernate.runtime.spi.ICfg2HbmTool in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateCfg2HbmTool.
@Test
public void testCreateCfg2HbmTool() {
Cfg2HbmTool cfg2HbmTool = new Cfg2HbmTool();
ICfg2HbmTool facade = facadeFactory.createCfg2HbmTool(cfg2HbmTool);
Assert.assertSame(cfg2HbmTool, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.ICfg2HbmTool in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateCfg2HbmTool.
@Test
public void testCreateCfg2HbmTool() {
Cfg2HbmTool cfg2HbmTool = new Cfg2HbmTool();
ICfg2HbmTool facade = facadeFactory.createCfg2HbmTool(cfg2HbmTool);
Assert.assertSame(cfg2HbmTool, ((IFacade) facade).getTarget());
}
use of org.jboss.tools.hibernate.runtime.spi.ICfg2HbmTool in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewCfg2HbmTool.
@Test
public void testNewCfg2HbmTool() {
ICfg2HbmTool cfg2HbmTool = service.newCfg2HbmTool();
Assert.assertNotNull(cfg2HbmTool);
Object target = ((IFacade) cfg2HbmTool).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof Cfg2HbmTool);
}
Aggregations