summaryrefslogtreecommitdiffstats
path: root/test/jrummikub/util/Event1Test.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/jrummikub/util/Event1Test.java')
-rw-r--r--test/jrummikub/util/Event1Test.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/jrummikub/util/Event1Test.java b/test/jrummikub/util/Event1Test.java
index f414bf5..3f8839d 100644
--- a/test/jrummikub/util/Event1Test.java
+++ b/test/jrummikub/util/Event1Test.java
@@ -15,15 +15,15 @@ public class Event1Test {
testEvent.add(new IListener1<Integer>() {
@Override
- public void fire(Integer n) {
+ public void handle(Integer n) {
fired += n;
}
});
assertEquals(fired, 0);
- testEvent.fire(10);
+ testEvent.emit(10);
assertEquals(fired, 10);
- testEvent.fire(20);
+ testEvent.emit(20);
assertEquals(fired, 30);
}
@@ -35,7 +35,7 @@ public class Event1Test {
testEvent.add(new IListener1<Integer>() {
@Override
- public void fire(Integer n) {
+ public void handle(Integer n) {
fired += n;
}
@@ -43,14 +43,14 @@ public class Event1Test {
testEvent.add(new IListener1<Integer>() {
@Override
- public void fire(Integer n) {
+ public void handle(Integer n) {
fired2 -= n;
}
});
assertEquals(fired, 0);
assertEquals(fired2, 0);
- testEvent.fire(5);
+ testEvent.emit(5);
assertEquals(fired, 5);
assertEquals(fired2, -5);
@@ -63,7 +63,7 @@ public class Event1Test {
testEvent.add(new IListener1<Integer>() {
@Override
- public void fire(Integer n) {
+ public void handle(Integer n) {
fired += n;
}
@@ -71,13 +71,13 @@ public class Event1Test {
IListener1<Integer> rem = new IListener1<Integer>() {
@Override
- public void fire(Integer n) {
+ public void handle(Integer n) {
fail();
}
};
testEvent.add(rem);
testEvent.remove(rem);
- testEvent.fire(10);
+ testEvent.emit(10);
assertEquals(fired, 10);
}
}