use of org.hibernate.tool.api.reveng.RevengSettings in project jbosstools-hibernate by jbosstools.
the class ReverseEngineeringStrategyFacadeTest method testSetSettings.
@Test
public void testSetSettings() throws Exception {
RevengStrategy revengStrategyTarget = new DefaultStrategy();
RevengSettings revengSettingsTarget = new RevengSettings(revengStrategyTarget);
IReverseEngineeringSettings revengSettingsFacade = FACADE_FACTORY.createReverseEngineeringSettings(revengSettingsTarget);
IReverseEngineeringStrategy revengStrategyFacade = new ReverseEngineeringStrategyFacadeImpl(FACADE_FACTORY, revengStrategyTarget);
Field field = AbstractStrategy.class.getDeclaredField("settings");
field.setAccessible(true);
assertNotSame(field.get(revengStrategyTarget), revengSettingsTarget);
revengStrategyFacade.setSettings(revengSettingsFacade);
assertSame(field.get(revengStrategyTarget), revengSettingsTarget);
}
use of org.hibernate.tool.api.reveng.RevengSettings in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateReverseEngineeringSettings.
@Test
public void testCreateReverseEngineeringSettings() {
RevengSettings res = new RevengSettings(null);
IReverseEngineeringSettings facade = facadeFactory.createReverseEngineeringSettings(res);
assertSame(res, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.api.reveng.RevengSettings in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewReverseEngineeringSettings.
@Test
public void testNewReverseEngineeringSettings() {
IReverseEngineeringStrategy strategy = service.newDefaultReverseEngineeringStrategy();
IReverseEngineeringSettings reverseEngineeringSettings = service.newReverseEngineeringSettings(strategy);
assertNotNull(reverseEngineeringSettings);
Object target = ((IFacade) reverseEngineeringSettings).getTarget();
assertNotNull(target);
assertTrue(target instanceof RevengSettings);
}
use of org.hibernate.tool.api.reveng.RevengSettings in project jbosstools-hibernate by jbosstools.
the class ReverseEngineeringSettingsFacadeTest method beforeEach.
@BeforeEach
public void beforeEach() {
revengSettingsTarget = new RevengSettings(new DefaultStrategy());
revengSettingsFacade = new AbstractReverseEngineeringSettingsFacade(FACADE_FACTORY, revengSettingsTarget) {
};
}
Aggregations