Search in sources :

Example 6 with NewConfigurationWizardPage

use of org.jboss.tools.hibernate.reddeer.console.wizards.NewConfigurationWizardPage in project jbosstools-hibernate by jbosstools.

the class RevengFileTest method prepareConsoleConfiguration.

public void prepareConsoleConfiguration() {
    NewConfigurationWizard wizard = new NewConfigurationWizard();
    wizard.open();
    NewConfigurationFirstPage p1 = new NewConfigurationFirstPage(wizard);
    p1.setLocation(PROJECT_NAME, "src", "main", "java");
    wizard.next();
    DatabaseConfiguration cfg = dbRequirement.getConfiguration();
    NewConfigurationWizardPage p2 = new NewConfigurationWizardPage(wizard);
    p2.setDatabaseDialect("H2");
    p2.setDriverClass(cfg.getDriverClass());
    p2.setConnectionURL(cfg.getJdbcString());
    p2.setUsername(cfg.getUsername());
    p2.setCreateConsoleConfiguration(true);
    p2.setHibernateVersion(hbVersion);
    wizard.finish();
}
Also used : NewConfigurationFirstPage(org.jboss.tools.hibernate.reddeer.console.wizards.NewConfigurationFirstPage) NewConfigurationWizard(org.jboss.tools.hibernate.reddeer.console.wizards.NewConfigurationWizard) NewConfigurationWizardPage(org.jboss.tools.hibernate.reddeer.console.wizards.NewConfigurationWizardPage) DatabaseConfiguration(org.eclipse.reddeer.requirements.db.DatabaseConfiguration)

Aggregations

NewConfigurationWizard (org.jboss.tools.hibernate.reddeer.console.wizards.NewConfigurationWizard)6 NewConfigurationWizardPage (org.jboss.tools.hibernate.reddeer.console.wizards.NewConfigurationWizardPage)6 NewConfigurationFirstPage (org.jboss.tools.hibernate.reddeer.console.wizards.NewConfigurationFirstPage)5 DatabaseConfiguration (org.eclipse.reddeer.requirements.db.DatabaseConfiguration)4 Test (org.junit.Test)2 DefaultEditor (org.eclipse.reddeer.workbench.impl.editor.DefaultEditor)1 SelectConnectionProfileDialog (org.jboss.tools.hibernate.reddeer.console.wizards.SelectConnectionProfileDialog)1