Search in sources :

Example 6 with ReverseEngineeringSettings

use of org.hibernate.cfg.reveng.ReverseEngineeringSettings 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 7 with ReverseEngineeringSettings

use of org.hibernate.cfg.reveng.ReverseEngineeringSettings 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 8 with ReverseEngineeringSettings

use of org.hibernate.cfg.reveng.ReverseEngineeringSettings 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 9 with ReverseEngineeringSettings

use of org.hibernate.cfg.reveng.ReverseEngineeringSettings 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 10 with ReverseEngineeringSettings

use of org.hibernate.cfg.reveng.ReverseEngineeringSettings 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

ReverseEngineeringSettings (org.hibernate.cfg.reveng.ReverseEngineeringSettings)12 IReverseEngineeringSettings (org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringSettings)12 Test (org.junit.Test)12 IFacade (org.jboss.tools.hibernate.runtime.common.IFacade)4 IReverseEngineeringStrategy (org.jboss.tools.hibernate.runtime.spi.IReverseEngineeringStrategy)4