Unit tests for EventBus #318

Merged
lars.winzer merged 3 commits from feat/135-write-unit-tests-for-eventbus into main 2026-04-27 00:55:44 +02:00
Showing only changes of commit d36a78eee4 - Show all commits
@@ -10,13 +10,13 @@ import org.junit.jupiter.api.Test;
public class EventBusTest { public class EventBusTest {
private EventBus eventBus; private EventBus eventBus;
private class TestEvent implements Event {}
@BeforeEach @BeforeEach
void setUp() { void setUp() {
eventBus = new EventBus(); eventBus = new EventBus();
} }
static class TestEvent implements Event {}
@Test @Test
void testSingleSubscriberReceivesEvent() { void testSingleSubscriberReceivesEvent() {
AtomicBoolean called = new AtomicBoolean(false); AtomicBoolean called = new AtomicBoolean(false);