Remove print statements from test
All checks were successful
zdm/event-bus/pipeline/head This commit looks good

This commit is contained in:
Kai S. K. Engelbart 2022-01-18 17:09:21 +01:00
parent 2d276a1d74
commit 8fae4f6d76
Signed by: kske
GPG Key ID: 8BEB13EC5DF7EF13

View File

@ -50,8 +50,6 @@ class DispatchTest {
*/ */
@Test @Test
void testDebugExecutionOrder() { void testDebugExecutionOrder() {
String executionOrder = bus.debugExecutionOrder(SimpleEvent.class);
System.out.println(executionOrder);
assertEquals( assertEquals(
"Event handler execution order for class dev.kske.eventbus.core.SimpleEvent (3 handler(s)):\n" "Event handler execution order for class dev.kske.eventbus.core.SimpleEvent (3 handler(s)):\n"
+ "==========================================================================================\n" + "==========================================================================================\n"
@ -59,7 +57,7 @@ class DispatchTest {
+ "ReflectiveEventHandler[eventType=class dev.kske.eventbus.core.SimpleEvent, polymorphic=false, priority=150, method=static void dev.kske.eventbus.core.DispatchTest.onSimpleEventSecond(dev.kske.eventbus.core.SimpleEvent), useParameter=true]\n" + "ReflectiveEventHandler[eventType=class dev.kske.eventbus.core.SimpleEvent, polymorphic=false, priority=150, method=static void dev.kske.eventbus.core.DispatchTest.onSimpleEventSecond(dev.kske.eventbus.core.SimpleEvent), useParameter=true]\n"
+ "CallbackEventHandler[eventType=class dev.kske.eventbus.core.SimpleEvent, polymorphic=false, priority=100]\n" + "CallbackEventHandler[eventType=class dev.kske.eventbus.core.SimpleEvent, polymorphic=false, priority=100]\n"
+ "==========================================================================================", + "==========================================================================================",
executionOrder); bus.debugExecutionOrder(SimpleEvent.class));
} }
/** /**
@ -70,9 +68,8 @@ class DispatchTest {
*/ */
@Test @Test
void testBindingCache() { void testBindingCache() {
String executionOrder = bus.debugExecutionOrder(SimpleEventSub.class); assertEquals(bus.debugExecutionOrder(SimpleEventSub.class),
System.out.println(executionOrder); bus.debugExecutionOrder(SimpleEventSub.class));
assertEquals(executionOrder, bus.debugExecutionOrder(SimpleEventSub.class));
} }
@Event @Event