Browse Source

Fix inconsistent test

pull/35/head
kske 2 weeks ago
parent
commit
6ee4e11161
Signed by: kske GPG Key ID: 8BEB13EC5DF7EF13
  1. 1
      core/src/test/java/dev/kske/eventbus/core/InheritanceTest.java
  2. 2
      core/src/test/java/dev/kske/eventbus/core/SimpleEventListenerBase.java

1
core/src/test/java/dev/kske/eventbus/core/InheritanceTest.java

@ -35,6 +35,7 @@ class InheritanceTest extends SimpleEventListenerBase implements SimpleEventList
}
@Event
@Priority(250)
private void onSimpleEventPrivate(SimpleEvent event) {
assertSame(0, event.getCounter());
event.increment();

2
core/src/test/java/dev/kske/eventbus/core/SimpleEventListenerBase.java

@ -16,8 +16,8 @@ abstract class SimpleEventListenerBase {
fail("This handler should not be invoked");
}
@Priority(150)
@Event
@Priority(150)
private void onSimpleEventPrivate(SimpleEvent event) {
assertSame(1, event.getCounter());
event.increment();

Loading…
Cancel
Save