summaryrefslogtreecommitdiffstats
path: root/test/jrummikub/util/EventTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/jrummikub/util/EventTest.java')
-rw-r--r--test/jrummikub/util/EventTest.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/jrummikub/util/EventTest.java b/test/jrummikub/util/EventTest.java
index a4fb94f..15bd632 100644
--- a/test/jrummikub/util/EventTest.java
+++ b/test/jrummikub/util/EventTest.java
@@ -13,16 +13,16 @@ public class EventTest {
testEvent.add(new IListener() {
@Override
- public void fire() {
+ public void handle() {
fired = true;
}
});
assertFalse(fired);
- testEvent.fire();
+ testEvent.emit();
assertTrue(fired);
fired = false;
- testEvent.fire();
+ testEvent.emit();
assertTrue(fired);
}
@@ -34,7 +34,7 @@ public class EventTest {
testEvent.add(new IListener() {
@Override
- public void fire() {
+ public void handle() {
fired = true;
}
@@ -42,14 +42,14 @@ public class EventTest {
testEvent.add(new IListener() {
@Override
- public void fire() {
+ public void handle() {
fired2 = true;
}
});
assertFalse(fired);
assertFalse(fired2);
- testEvent.fire();
+ testEvent.emit();
assertTrue(fired);
assertTrue(fired2);
@@ -62,7 +62,7 @@ public class EventTest {
testEvent.add(new IListener() {
@Override
- public void fire() {
+ public void handle() {
fired = true;
}
@@ -70,13 +70,13 @@ public class EventTest {
IListener rem = new IListener() {
@Override
- public void fire() {
+ public void handle() {
fail();
}
};
testEvent.add(rem);
testEvent.remove(rem);
- testEvent.fire();
+ testEvent.emit();
assertTrue(fired);
}