use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewOneToMany.
@Test
public void testNewOneToMany() {
IPersistentClass persistentClass = service.newRootClass();
IValue oneToMany = service.newOneToMany(persistentClass);
Assert.assertNotNull(oneToMany);
Object target = ((IFacade) oneToMany).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof OneToMany);
}
use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewJpaConfiguration.
@Test
public void testNewJpaConfiguration() {
IConfiguration configuration = service.newJpaConfiguration(null, "test", null);
Assert.assertNotNull(configuration);
Object target = ((IFacade) configuration).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof Configuration);
}
use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewBag.
@Test
public void testNewBag() {
IPersistentClass persistentClass = service.newRootClass();
IValue bag = service.newBag(persistentClass);
Assert.assertNotNull(bag);
Object target = ((IFacade) bag).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof Bag);
}
use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewDefaultReverseEngineeringStrategy.
@Test
public void testNewDefaultReverseEngineeringStrategy() throws Exception {
IReverseEngineeringStrategy reverseEngineeringStrategy = service.newDefaultReverseEngineeringStrategy();
Assert.assertNotNull(reverseEngineeringStrategy);
Object target = ((IFacade) reverseEngineeringStrategy).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof ReverseEngineeringStrategy);
}
use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewTableFilter.
@Test
public void testNewTableFilter() {
ITableFilter tableFilter = service.newTableFilter();
Assert.assertNotNull(tableFilter);
Object target = ((IFacade) tableFilter).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof TableFilter);
}
Aggregations