@@ -73,37 +73,30 @@ void setUp() {
7373
7474 @ Test
7575 void testEnableAndDisableDummyProcessor () {
76- // Initially, the dummy processor should be disabled
7776 Assertions .assertFalse (
7877 dummyProcessor .enabled (), "Dummy processor should be disabled initially" );
7978
80- // Enable the dummy processor
8179 channelProcessorService .setProcessorEnabled ("DummyProcessor" , true );
8280 Assertions .assertTrue (dummyProcessor .enabled (), "Dummy processor should be enabled" );
8381
84- // Disable the dummy processor
8582 channelProcessorService .setProcessorEnabled ("DummyProcessor" , false );
8683 Assertions .assertFalse (dummyProcessor .enabled (), "Dummy processor should be disabled" );
8784 }
8885
8986 @ Test
9087 void testDummyProcessorProcessing () {
91- // Disable the dummy processor
9288 dummyProcessor .reset ();
9389 channelProcessorService .setProcessorEnabled ("DummyProcessor" , false );
9490 Assertions .assertFalse (dummyProcessor .enabled (), "Dummy processor should be disabled" );
9591
96- // Process a channel - dummy processor should not be called
9792 channelProcessorService .sendToProcessors (
9893 Collections .singletonList (new Channel ("test-channel" )));
9994 Assertions .assertFalse (
10095 dummyProcessor .hasBeenProcessed (), "Dummy processor should not have been called" );
10196
102- // Enable the dummy processor
10397 channelProcessorService .setProcessorEnabled ("DummyProcessor" , true );
10498 Assertions .assertTrue (dummyProcessor .enabled (), "Dummy processor should be enabled" );
10599
106- // Process a channel - dummy processor should be called
107100 channelProcessorService .sendToProcessors (
108101 Collections .singletonList (new Channel ("test-channel" )));
109102 Assertions .assertTrue (
0 commit comments