Work toward fixing ONOS-1031: Remove or comment-out references to the FlowManager

Removed or commented-out references to the FlowManager, in preparation for
its removal:

 * BgpRoute.java
   Commented-out references to the FlowManager to add/delete flows.
   Those should be replaced by calls to the new Path Intent framework.
   Currently, we don't have the setup to test BgpRoute and the new Path Intent
   framework is not ready yet, hence those references are commented-out.

 * FlowProgrammer.java
   - Disabled the FlowSynchronizer, because it needs to be refactored,
     and probably now is not working as expected.
   - Removed a call to the FlowManager.flowEntryOnSwitchExpired(sw, id)
     and replaced it with a comment that the Forwarding module needs to be
     informed that a flow is expired.
     Currently, the Forwarding module is not functional and needs to be
     refactored, hence we cannot test any code refactoring around this.

 * FlowSynchronizer.java
   Commented-out a call and relevant code around
   FlowDatabaseOperation.extractFlowEntry()
   The FlowSyncronizer itself needs refactoring, and it is not clear what
   the next version is going to look like.

 * Forwarding.java
   Commented-out a call to flowService.addFlow(flowPath)
   This should be replaced by a call to the new Path Intent framework.
   Currently, the Forwarding module is not working, and the new Path Intent
   framework is not ready yet, hence the call is commented-out.

 * ControllerTest.java
   Removed reference to IFlowService.class because that class will be removed

 * FlowSyncronizerTest.java
   Commented out test code that refers to the FlowDatabaseOperation class.
   That class will be removed, and the test needs to be rewritten after
   the all the cleanup is completed.

Change-Id: I034636ba9c882220f71761a61ea9e6e10bc93357
diff --git a/src/test/java/net/onrc/onos/ofcontroller/flowprogrammer/FlowSynchronizerTest.java b/src/test/java/net/onrc/onos/ofcontroller/flowprogrammer/FlowSynchronizerTest.java
index 28f221d..a1398ee 100644
--- a/src/test/java/net/onrc/onos/ofcontroller/flowprogrammer/FlowSynchronizerTest.java
+++ b/src/test/java/net/onrc/onos/ofcontroller/flowprogrammer/FlowSynchronizerTest.java
@@ -12,7 +12,6 @@
 import net.onrc.onos.graph.DBOperation;
 import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.IFlowEntry;
 import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.ISwitchObject;
-import net.onrc.onos.ofcontroller.flowmanager.FlowDatabaseOperation;
 import net.onrc.onos.ofcontroller.flowprogrammer.IFlowPusherService.MsgPriority;
 import net.onrc.onos.ofcontroller.flowprogrammer.IFlowSyncService.SyncResult;
 import net.onrc.onos.ofcontroller.util.FlowEntry;
@@ -39,7 +38,7 @@
 // Test should be fixed to fit RAMCloud basis
 @Ignore
 @RunWith(PowerMockRunner.class)
-@PrepareForTest({FlowSynchronizer.class, DBOperation.class, FlowDatabaseOperation.class})
+@PrepareForTest({FlowSynchronizer.class, DBOperation.class})
 public class FlowSynchronizerTest {
 	private FlowPusher pusher;
 	private FlowSynchronizer sync;
@@ -257,6 +256,11 @@
 	 * @param idList List of FlowEntry IDs stored in DB.
 	 */
 	private void initMockGraph(long[] idList) {
+	    /*
+	     * TODO: The old FlowDatabaseOperation class is gone, so the method
+	     * below needs to be rewritten.
+	     */
+	    /*
 		List<IFlowEntry> flowEntryList = new ArrayList<IFlowEntry>();
 		
 		for (long id : idList) {
@@ -301,6 +305,7 @@
 			fail("Failed to create DBOperation");
 		}
 		PowerMock.replay(DBOperation.class);
+	    */
 	}
 	
 	/**