aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszarnekow2009-03-23 03:32:41 (EDT)
committersefftinge2009-03-23 03:32:41 (EDT)
commit3839877e72e2d73105d4b1d22674415403cc7e19 (patch)
tree3d861b09f005cd30fc0ab7656cc940639a10e056
parent1bbc9e02d24701e428b63d43a626e291f7784427 (diff)
downloadorg.eclipse.xtext-3839877e72e2d73105d4b1d22674415403cc7e19.zip
org.eclipse.xtext-3839877e72e2d73105d4b1d22674415403cc7e19.tar.gz
org.eclipse.xtext-3839877e72e2d73105d4b1d22674415403cc7e19.tar.bz2
Fix test
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/PolymorphicDispatcherTest.java8
1 files changed, 6 insertions, 2 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 bc30c94..bb6f54a 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
@@ -77,8 +77,12 @@ public class PolymorphicDispatcherTest extends TestCase {
return "Object_" + i;
}
};
- PolymorphicDispatcher<String> dispatcher = new PolymorphicDispatcher<String>("label", 1, 2, list(o1));
-
+ PolymorphicDispatcher<String> dispatcher = new PolymorphicDispatcher<String>("label", 1, 2, list(o1),
+ new PolymorphicDispatcher.ErrorHandler<String>(){
+ public String handle(Object[] params, Throwable throwable) {
+ return null;
+ }
+ });
assertEquals("Object_3", dispatcher.invoke(new Integer(3)));
assertNull("Integer_3_4", dispatcher.invoke(new Long(3), 4));
assertEquals("Integer_3_4", dispatcher.invoke(new Integer(3), 4));