Search in sources :

Example 1 with StandAloneConsoleConfigurationPreferences

use of org.hibernate.console.preferences.StandAloneConsoleConfigurationPreferences in project jbosstools-hibernate by jbosstools.

the class HSearchConsoleConfigurationPreferencesTest method testGetHSearchVersion.

@Test
public void testGetHSearchVersion() {
    ConsoleConfigurationPreferences prefs = new StandAloneConsoleConfigurationPreferences("my-console-config", "4.3") {
    };
    ConsoleConfiguration consoleConfiguration = new ConsoleConfiguration(prefs);
    KnownConfigurations.getInstance().addConfiguration(consoleConfiguration, false);
    assertEquals(HSearchConsoleConfigurationPreferences.getHSearchVersion("my-console-config"), "5.3");
}
Also used : StandAloneConsoleConfigurationPreferences(org.hibernate.console.preferences.StandAloneConsoleConfigurationPreferences) ConsoleConfiguration(org.hibernate.console.ConsoleConfiguration) StandAloneConsoleConfigurationPreferences(org.hibernate.console.preferences.StandAloneConsoleConfigurationPreferences) HSearchConsoleConfigurationPreferences(org.jboss.tools.hibernate.search.HSearchConsoleConfigurationPreferences) ConsoleConfigurationPreferences(org.hibernate.console.preferences.ConsoleConfigurationPreferences) Test(org.junit.Test)

Aggregations

ConsoleConfiguration (org.hibernate.console.ConsoleConfiguration)1 ConsoleConfigurationPreferences (org.hibernate.console.preferences.ConsoleConfigurationPreferences)1 StandAloneConsoleConfigurationPreferences (org.hibernate.console.preferences.StandAloneConsoleConfigurationPreferences)1 HSearchConsoleConfigurationPreferences (org.jboss.tools.hibernate.search.HSearchConsoleConfigurationPreferences)1 Test (org.junit.Test)1