Search in sources :

Example 1 with LaunchConfigTestProject

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);
}
Also used : ConsoleConfiguration(org.hibernate.console.ConsoleConfiguration) LaunchConfigTestProject(org.jboss.tools.hibernate.orm.test.utils.project.LaunchConfigTestProject) FileWriter(java.io.FileWriter) IFile(org.eclipse.core.resources.IFile) File(java.io.File) TestConsoleConfigurationPreferences(org.jboss.tools.hibernate.orm.test.utils.TestConsoleConfigurationPreferences) Before(org.junit.Before)

Aggregations

File (java.io.File)1 FileWriter (java.io.FileWriter)1 IFile (org.eclipse.core.resources.IFile)1 ConsoleConfiguration (org.hibernate.console.ConsoleConfiguration)1 TestConsoleConfigurationPreferences (org.jboss.tools.hibernate.orm.test.utils.TestConsoleConfigurationPreferences)1 LaunchConfigTestProject (org.jboss.tools.hibernate.orm.test.utils.project.LaunchConfigTestProject)1 Before (org.junit.Before)1