Author: dgolovin
Date: 2012-01-23 18:39:51 -0500 (Mon, 23 Jan 2012)
New Revision: 38052
Modified:
trunk/forge/tests/org.jboss.tools.forge.core.test/src/org/jboss/tools/forge/core/preferences/ForgeRuntimesPreferencesTest.java
Log:
fix for compilation errors:
assertEquals(ForgeEmbeddedRuntime.INSTANCE,
ForgeRuntimesPreferences.INSTANCE.getDefault());
[ERROR] ^^^^^^^^^^
[ERROR] The method getDefault() is undefined for the type ForgeRuntimesPreferences
getDeafult calls were changed to getDefaultRuntime
Modified:
trunk/forge/tests/org.jboss.tools.forge.core.test/src/org/jboss/tools/forge/core/preferences/ForgeRuntimesPreferencesTest.java
===================================================================
---
trunk/forge/tests/org.jboss.tools.forge.core.test/src/org/jboss/tools/forge/core/preferences/ForgeRuntimesPreferencesTest.java 2012-01-23
22:37:36 UTC (rev 38051)
+++
trunk/forge/tests/org.jboss.tools.forge.core.test/src/org/jboss/tools/forge/core/preferences/ForgeRuntimesPreferencesTest.java 2012-01-23
23:39:51 UTC (rev 38052)
@@ -25,7 +25,7 @@
@Test
public void testGetDefaultInitialCase() {
- assertEquals(ForgeEmbeddedRuntime.INSTANCE,
ForgeRuntimesPreferences.INSTANCE.getDefault());
+ assertEquals(ForgeEmbeddedRuntime.INSTANCE,
ForgeRuntimesPreferences.INSTANCE.getDefaultRuntime());
}
@Test
@@ -41,7 +41,7 @@
runtimes[2] = new ForgeExternalRuntime("bar", "barbar");
ForgeRuntimesPreferences.INSTANCE.setRuntimes(runtimes, runtimes[1]);
assertArrayEquals(runtimes, ForgeRuntimesPreferences.INSTANCE.getRuntimes());
- assertEquals(runtimes[1], ForgeRuntimesPreferences.INSTANCE.getDefault());
+ assertEquals(runtimes[1], ForgeRuntimesPreferences.INSTANCE.getDefaultRuntime());
verifyForgeRuntimesPreferencesString();
}
@@ -129,7 +129,7 @@
ForgeRuntimesPreferences.PREF_FORGE_RUNTIMES,
ALTERNATIVE_FORGE_RUNTIMES);
// getDefault() will now trigger the initialization
- ForgeRuntime runtime = ForgeRuntimesPreferences.INSTANCE.getDefault();
+ ForgeRuntime runtime = ForgeRuntimesPreferences.INSTANCE.getDefaultRuntime();
assertEquals("foo", runtime.getName());
assertEquals("foofoo", runtime.getLocation());
assertEquals("external", runtime.getType());
Show replies by date