mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-10-12 01:45:18 +02:00
Renamed generator to dispatcher
This commit is contained in:
@@ -4,7 +4,7 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
class EventGeneratorTest {
|
||||
class EventDispatcherTest {
|
||||
|
||||
class TestEvent {
|
||||
|
||||
@@ -37,7 +37,7 @@ class EventGeneratorTest {
|
||||
|
||||
@Test
|
||||
void eventRegistry() {
|
||||
EventGenerator<TestEvent, TestListener> gen = new EventGenerator<>();
|
||||
EventDispatcher<TestEvent, TestListener> gen = new EventDispatcher<>();
|
||||
|
||||
gen.registerEventType("start", ( event, listener ) -> listener.startEvent(event));
|
||||
gen.registerEventType("stop", ( event, listener ) -> listener.stopEvent(event));
|
||||
Reference in New Issue
Block a user