use of org.hibernate.tool.ide.completion.HQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHQLCodeAssist.
@Test
public void testCreateHQLCodeAssist() {
Configuration configuration = new Configuration();
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(configuration);
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.ide.completion.HQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHQLCodeAssist.
@Test
public void testCreateHQLCodeAssist() {
Configuration configuration = new Configuration();
configuration.setProperty(AvailableSettings.DIALECT, TestDialect.class.getName());
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(configuration);
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.ide.completion.HQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHQLCodeAssist.
@Test
public void testCreateHQLCodeAssist() {
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(null);
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.ide.completion.HQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHQLCodeAssist.
@Test
public void testCreateHQLCodeAssist() {
Configuration configuration = new Configuration();
configuration.setProperty(AvailableSettings.DIALECT, TestDialect.class.getName());
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(configuration);
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
use of org.hibernate.tool.ide.completion.HQLCodeAssist in project jbosstools-hibernate by jbosstools.
the class FacadeFactoryTest method testCreateHQLCodeAssist.
@Test
public void testCreateHQLCodeAssist() {
StandardServiceRegistryBuilder ssrb = new StandardServiceRegistryBuilder();
ssrb.applySetting(AvailableSettings.DIALECT, MockDialect.class.getName());
ssrb.applySetting(AvailableSettings.CONNECTION_PROVIDER, MockConnectionProvider.class.getName());
HQLCodeAssist hqlCodeAssist = new HQLCodeAssist(new MetadataSources().buildMetadata(ssrb.build()));
IHQLCodeAssist facade = facadeFactory.createHQLCodeAssist(hqlCodeAssist);
assertSame(hqlCodeAssist, ((IFacade) facade).getTarget());
}
Aggregations