From be8380914dddf892bbcf5350d0dc64771caf6eaa Mon Sep 17 00:00:00 2001 From: Saurav Das <saurav.das@bigswitch.com> Date: Tue, 14 May 2013 09:45:05 -0700 Subject: [PATCH] Making unit test pass --- .../floodlightcontroller/core/internal/ControllerTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/java/net/floodlightcontroller/core/internal/ControllerTest.java b/src/test/java/net/floodlightcontroller/core/internal/ControllerTest.java index fdb7cba21..8ba2b404b 100644 --- a/src/test/java/net/floodlightcontroller/core/internal/ControllerTest.java +++ b/src/test/java/net/floodlightcontroller/core/internal/ControllerTest.java @@ -54,6 +54,8 @@ import net.floodlightcontroller.counter.CounterStore; import net.floodlightcontroller.counter.ICounterStoreService; import net.floodlightcontroller.debugcounter.DebugCounter; import net.floodlightcontroller.debugcounter.IDebugCounterService; +import net.floodlightcontroller.debugevent.DebugEvent; +import net.floodlightcontroller.debugevent.IDebugEventService; import net.floodlightcontroller.packet.ARP; import net.floodlightcontroller.packet.Ethernet; import net.floodlightcontroller.packet.IPacket; @@ -132,6 +134,9 @@ public class ControllerTest extends FloodlightTestCase { DebugCounter debugCounterService = new DebugCounter(); fmc.addService(IDebugCounterService.class, debugCounterService); + DebugEvent debugEventService = new DebugEvent(); + fmc.addService(IDebugEventService.class, debugEventService); + tp = new MockThreadPoolService(); fmc.addService(IThreadPoolService.class, tp); @@ -145,6 +150,7 @@ public class ControllerTest extends FloodlightTestCase { memstorage.init(fmc); tp.init(fmc); debugCounterService.init(fmc); + debugEventService.init(fmc); syncService.init(fmc); cm.init(fmc); @@ -153,6 +159,7 @@ public class ControllerTest extends FloodlightTestCase { memstorage.startUp(fmc); tp.startUp(fmc); debugCounterService.startUp(fmc); + debugEventService.startUp(fmc); syncService.startUp(fmc); cm.startUp(fmc); -- GitLab