Rename event and listener methods
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@81 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
bcc3f95847
commit
6161c4b1d4
12 changed files with 69 additions and 69 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue