aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/e1/pdj/test/CallbackTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/e1/pdj/test/CallbackTest.java')
-rw-r--r--src/java/com/e1/pdj/test/CallbackTest.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/java/com/e1/pdj/test/CallbackTest.java b/src/java/com/e1/pdj/test/CallbackTest.java
index 4105479..526a5f4 100644
--- a/src/java/com/e1/pdj/test/CallbackTest.java
+++ b/src/java/com/e1/pdj/test/CallbackTest.java
@@ -1,10 +1,20 @@
package com.e1.pdj.test;
+import com.cycling74.max.*;
import junit.framework.TestCase;
public class CallbackTest extends TestCase {
- public void testSomething() {
+
+
+ public void testArgs() {
+ Callback callback = new Callback(this, "callme", new Object[] { new Integer[0] });
+ Integer[] args = new Integer[] { new Integer(1), new Integer(2) };
+ callback.setArgs((Object[]) args);
+ callback.execute();
+ }
+
+ public void callme(Integer args[]) {
}
}