use of org.jboss.tools.hibernate.orm.test.utils.project.LaunchConfigTestProject in project jbosstools-hibernate by jbosstools.
the class ExporterAttributesTest method setUp.
@Before
public void setUp() throws Exception {
cfgXmlFile = new File(temporaryFolder.getRoot(), "hibernate.cfg.xml");
FileWriter fw = new FileWriter(cfgXmlFile);
fw.write(HIBERNATE_CFG_XML);
fw.close();
this.project = new LaunchConfigTestProject();
TestConsoleConfigurationPreferences cfgprefs = new TestConsoleConfigurationPreferences(cfgXmlFile);
consoleCfg = new ConsoleConfiguration(cfgprefs);
service = consoleCfg.getHibernateExtension().getHibernateService();
KnownConfigurations.getInstance().addConfiguration(consoleCfg, true);
}
Aggregations