| author | szarnekow | 2009-03-18 04:43:14 (EDT) |
|---|---|---|
| committer | sefftinge | 2009-03-18 04:43:14 (EDT) |
| commit | cda15ab99765d9c60cc33b985b09c9dc1cf7565b (patch) (side-by-side diff) | |
| tree | 4d06cdea38f3a0c889300e35d964534b60cdca2e | |
| parent | 148b7cd036a7fd575297fa19ab93587fae43b1d8 (diff) | |
| download | org.eclipse.xtext-cda15ab99765d9c60cc33b985b09c9dc1cf7565b.zip org.eclipse.xtext-cda15ab99765d9c60cc33b985b09c9dc1cf7565b.tar.gz org.eclipse.xtext-cda15ab99765d9c60cc33b985b09c9dc1cf7565b.tar.bz2 | |
Minor changes to polymorphic dispatcher
| -rw-r--r-- | tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/PolymorphicDispatcherTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/PolymorphicDispatcherTest.java b/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/PolymorphicDispatcherTest.java index df95a4b..009d4fb 100644 --- a/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/PolymorphicDispatcherTest.java +++ b/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/PolymorphicDispatcherTest.java @@ -8,7 +8,7 @@ *******************************************************************************/ package org.eclipse.xtext.util; -import static org.eclipse.xtext.util.Collections.*; +import static org.eclipse.xtext.util.CollectionUtils.*; import java.math.BigInteger; @@ -16,7 +16,7 @@ import junit.framework.TestCase; /** * @author Sven Efftinge - Initial contribution and API - * + * */ @SuppressWarnings("unused") public class PolymorphicDispatcherTest extends TestCase { @@ -51,7 +51,7 @@ public class PolymorphicDispatcherTest extends TestCase { } }; - PolymorphicDispatcher<String> dispatcher = new PolymorphicDispatcher<String>("label", asList(o1, o2)); + PolymorphicDispatcher<String> dispatcher = new PolymorphicDispatcher<String>("label", list(o1, o2)); assertEquals("Integer2_3", dispatcher.invoke(new Integer(3))); assertEquals("Number_from_superclass_3", dispatcher.invoke(new Long(3))); @@ -73,7 +73,7 @@ public class PolymorphicDispatcherTest extends TestCase { return "Object_" + i; } }; - PolymorphicDispatcher<String> dispatcher = new PolymorphicDispatcher<String>("label", 1, 2, asList(o1)); + PolymorphicDispatcher<String> dispatcher = new PolymorphicDispatcher<String>("label", 1, 2, list(o1)); assertEquals("Object_3", dispatcher.invoke(new Integer(3))); assertNull("Integer_3_4", dispatcher.invoke(new Long(3), 4)); @@ -93,7 +93,7 @@ public class PolymorphicDispatcherTest extends TestCase { return Comparable.class.getSimpleName(); } }; - PolymorphicDispatcher<String> dispatcher = new PolymorphicDispatcher<String>("label", asList(o1)); + PolymorphicDispatcher<String> dispatcher = new PolymorphicDispatcher<String>("label", list(o1)); try { dispatcher.invoke("string"); fail("exception expected, due to ambigous methods"); |

