use of org.hibernate.cfg.NamingStrategy in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateNamingStrategy.
@Test
public void testCreateNamingStrategy() {
NamingStrategy namingStrategy = new DefaultNamingStrategy();
INamingStrategy facade = facadeFactory.createNamingStrategy(namingStrategy);
Assert.assertSame(namingStrategy, ((IFacade) facade).getTarget());
}
use of org.hibernate.cfg.NamingStrategy in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateNamingStrategy.
@Test
public void testCreateNamingStrategy() {
NamingStrategy namingStrategy = new DefaultNamingStrategy();
INamingStrategy facade = facadeFactory.createNamingStrategy(namingStrategy);
Assert.assertSame(namingStrategy, ((IFacade) facade).getTarget());
}
use of org.hibernate.cfg.NamingStrategy in project jbosstools-hibernate by jbosstools.
the class ConfigurationFacadeTest method testSetNamingStrategy.
@Test
public void testSetNamingStrategy() {
NamingStrategy dns = new DefaultNamingStrategy();
INamingStrategy namingStrategy = FACADE_FACTORY.createNamingStrategy(dns);
Assert.assertNotSame(dns, configuration.getNamingStrategy());
configurationFacade.setNamingStrategy(namingStrategy);
Assert.assertSame(dns, configuration.getNamingStrategy());
}
use of org.hibernate.cfg.NamingStrategy in project jbosstools-hibernate by jbosstools.
the class ConfigurationFacadeTest method testGetNamingStrategy.
@Test
public void testGetNamingStrategy() {
NamingStrategy firstStrategy = new DefaultNamingStrategy();
configuration.setNamingStrategy(firstStrategy);
INamingStrategy firstStrategyFacade = configurationFacade.getNamingStrategy();
Assert.assertSame(firstStrategy, ((IFacade) firstStrategyFacade).getTarget());
NamingStrategy secondStrategy = new DefaultNamingStrategy();
configuration.setNamingStrategy(secondStrategy);
INamingStrategy secondStrategyFacade = configurationFacade.getNamingStrategy();
Assert.assertNotSame(secondStrategy, ((IFacade) secondStrategyFacade).getTarget());
}
use of org.hibernate.cfg.NamingStrategy in project jbosstools-hibernate by jbosstools.
the class ConfigurationFacadeTest method testGetNamingStrategy.
@Test
public void testGetNamingStrategy() {
NamingStrategy firstStrategy = new DefaultNamingStrategy();
configuration.setNamingStrategy(firstStrategy);
INamingStrategy firstStrategyFacade = configurationFacade.getNamingStrategy();
Assert.assertSame(firstStrategy, ((IFacade) firstStrategyFacade).getTarget());
NamingStrategy secondStrategy = new DefaultNamingStrategy();
configuration.setNamingStrategy(secondStrategy);
INamingStrategy secondStrategyFacade = configurationFacade.getNamingStrategy();
Assert.assertNotSame(secondStrategy, ((IFacade) secondStrategyFacade).getTarget());
}
Aggregations