Search in sources :

Example 11 with IReverseEngineeringSettings

use of org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateReverseEngineeringSettings.

@Test
public void testCreateReverseEngineeringSettings() {
    ReverseEngineeringSettings res = new ReverseEngineeringSettings(null);
    IReverseEngineeringSettings facade = facadeFactory.createReverseEngineeringSettings(res);
    Assert.assertSame(res, ((IFacade) facade).getTarget());
}
Also used : IReverseEngineeringSettings(org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings) ReverseEngineeringSettings(org.hibernate.cfg.reveng.ReverseEngineeringSettings) IReverseEngineeringSettings(org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings) Test(org.junit.Test)

Example 12 with IReverseEngineeringSettings

use of org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings 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);
}
Also used : IReverseEngineeringSettings(org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings) ReverseEngineeringSettings(org.hibernate.cfg.reveng.ReverseEngineeringSettings) IReverseEngineeringSettings(org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings) IReverseEngineeringStrategy(org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringStrategy) IFacade(org.jboss.tools.hibernate.runtime.common.IFacade) Test(org.junit.Test)

Example 13 with IReverseEngineeringSettings

use of org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings in project jbosstools-hibernate by jbosstools.

the class FacadeFactoryTest method testCreateReverseEngineeringSettings.

@Test
public void testCreateReverseEngineeringSettings() {
    ReverseEngineeringSettings res = new ReverseEngineeringSettings(null);
    IReverseEngineeringSettings facade = facadeFactory.createReverseEngineeringSettings(res);
    Assert.assertSame(res, ((IFacade) facade).getTarget());
}
Also used : IReverseEngineeringSettings(org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings) ReverseEngineeringSettings(org.hibernate.cfg.reveng.ReverseEngineeringSettings) IReverseEngineeringSettings(org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings) Test(org.junit.Test)

Example 14 with IReverseEngineeringSettings

use of org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings 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);
}
Also used : IReverseEngineeringSettings(org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings) ReverseEngineeringSettings(org.hibernate.cfg.reveng.ReverseEngineeringSettings) IReverseEngineeringSettings(org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings) IReverseEngineeringStrategy(org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringStrategy) IFacade(org.jboss.tools.hibernate.runtime.common.IFacade) Test(org.junit.Test)

Aggregations

IReverseEngineeringSettings (org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings)14 ReverseEngineeringSettings (org.hibernate.cfg.reveng.ReverseEngineeringSettings)12 Test (org.junit.Test)12 IReverseEngineeringStrategy (org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringStrategy)6 IFacade (org.jboss.tools.hibernate.runtime.common.IFacade)4 File (java.io.File)2 Properties (java.util.Properties)2 IResource (org.eclipse.core.resources.IResource)2 IConfiguration (org.jboss.tools.hibernate.runtime.spi.IConfiguration)2 IOverrideRepository (org.jboss.tools.hibernate.runtime.spi.IOverrideRepository)2 IService (org.jboss.tools.hibernate.runtime.spi.IService)2