use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewSingleTableSubclass.
@Test
public void testNewSingleTableSubclass() {
IPersistentClass persistentClass = service.newRootClass();
IPersistentClass singleTableSublass = service.newSingleTableSubclass(persistentClass);
Assert.assertNotNull(singleTableSublass);
Object target = ((IFacade) singleTableSublass).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof SingleTableSubclass);
Assert.assertSame(persistentClass, singleTableSublass.getSuperclass());
Assert.assertSame(((IFacade) persistentClass).getTarget(), ((SingleTableSubclass) target).getSuperclass());
}
use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewArtifactCollector.
@Test
public void testNewArtifactCollector() {
IArtifactCollector artifactCollector = service.newArtifactCollector();
Assert.assertNotNull(artifactCollector);
Object target = ((IFacade) artifactCollector).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof ArtifactCollector);
}
use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewReverseEngineeringSettings.
@Test
public void testNewReverseEngineeringSettings() {
IReverseEngineeringStrategy strategy = service.newDefaultReverseEngineeringStrategy();
IReverseEngineeringSettings reverseEngineeringSettings = service.newReverseEngineeringSettings(strategy);
Assert.assertNotNull(reverseEngineeringSettings);
Object target = ((IFacade) reverseEngineeringSettings).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof ReverseEngineeringSettings);
}
use of org.jboss.tools.hibernate.runtime.common.IFacade in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewRootClass.
@Test
public void testNewRootClass() {
IPersistentClass rootClass = service.newRootClass();
Assert.assertNotNull(rootClass);
Object target = ((IFacade) rootClass).getTarget();
Assert.assertNotNull(target);
Assert.assertTrue(target instanceof RootClass);
}
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);
}
Aggregations