use of org.jboss.tools.hibernate.runtime.v_6_0.internal.util.JdbcMetadataConfiguration in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewJDBCMetaDataConfiguration.
@Test
public void testNewJDBCMetaDataConfiguration() {
IConfiguration configuration = service.newJDBCMetaDataConfiguration();
assertNotNull(configuration);
Object target = ((IFacade) configuration).getTarget();
assertNotNull(target);
assertTrue(target instanceof JdbcMetadataConfiguration);
}
use of org.jboss.tools.hibernate.runtime.v_6_0.internal.util.JdbcMetadataConfiguration in project jbosstools-hibernate by jbosstools.
the class ServiceImplTest method testNewJDBCMetaDataConfiguration.
@Test
public void testNewJDBCMetaDataConfiguration() {
IConfiguration configuration = service.newJDBCMetaDataConfiguration();
assertNotNull(configuration);
Object target = ((IFacade) configuration).getTarget();
assertNotNull(target);
assertTrue(target instanceof JdbcMetadataConfiguration);
}
use of org.jboss.tools.hibernate.runtime.v_6_0.internal.util.JdbcMetadataConfiguration in project jbosstools-hibernate by jbosstools.
the class ConfigurationFacadeTest method testSetReverseEngineeringStrategy.
@Test
public void testSetReverseEngineeringStrategy() {
JdbcMetadataConfiguration configuration = new JdbcMetadataConfiguration();
configurationFacade = new ConfigurationFacadeImpl(FACADE_FACTORY, configuration);
ReverseEngineeringStrategy reverseEngineeringStrategy = new DefaultReverseEngineeringStrategy();
IReverseEngineeringStrategy strategyFacade = FACADE_FACTORY.createReverseEngineeringStrategy(reverseEngineeringStrategy);
assertNotSame(reverseEngineeringStrategy, configuration.getReverseEngineeringStrategy());
configurationFacade.setReverseEngineeringStrategy(strategyFacade);
assertSame(reverseEngineeringStrategy, configuration.getReverseEngineeringStrategy());
}
use of org.jboss.tools.hibernate.runtime.v_6_0.internal.util.JdbcMetadataConfiguration in project jbosstools-hibernate by jbosstools.
the class ConfigurationFacadeTest method testSetReverseEngineeringStrategy.
@Test
public void testSetReverseEngineeringStrategy() {
JdbcMetadataConfiguration configuration = new JdbcMetadataConfiguration();
configurationFacade = new ConfigurationFacadeImpl(FACADE_FACTORY, configuration);
ReverseEngineeringStrategy reverseEngineeringStrategy = new DefaultReverseEngineeringStrategy();
IReverseEngineeringStrategy strategyFacade = FACADE_FACTORY.createReverseEngineeringStrategy(reverseEngineeringStrategy);
assertNotSame(reverseEngineeringStrategy, configuration.getReverseEngineeringStrategy());
configurationFacade.setReverseEngineeringStrategy(strategyFacade);
assertSame(reverseEngineeringStrategy, configuration.getReverseEngineeringStrategy());
}
use of org.jboss.tools.hibernate.runtime.v_6_0.internal.util.JdbcMetadataConfiguration in project jbosstools-hibernate by jbosstools.
the class ConfigurationFacadeTest method testSetPreferBasicCompositeIds.
@Test
public void testSetPreferBasicCompositeIds() {
JdbcMetadataConfiguration configuration = new JdbcMetadataConfiguration();
configurationFacade = new ConfigurationFacadeImpl(FACADE_FACTORY, configuration);
// the default is true
assertTrue(configuration.preferBasicCompositeIds());
configurationFacade.setPreferBasicCompositeIds(false);
assertFalse(configuration.preferBasicCompositeIds());
}
Aggregations