Author: mes
Date: 2011-09-23 15:01:29 -0700 (Fri, 23 Sep 2011)
New Revision: 26958
Modified:
core3/impl/trunk/model-impl/impl/src/test/java/org/cytoscape/model/NetworkTestSupport.java
Log:
added support for root network factory
Modified:
core3/impl/trunk/model-impl/impl/src/test/java/org/cytoscape/model/NetworkTestSupport.java
===================================================================
---
core3/impl/trunk/model-impl/impl/src/test/java/org/cytoscape/model/NetworkTestSupport.java
2011-09-23 21:26:36 UTC (rev 26957)
+++
core3/impl/trunk/model-impl/impl/src/test/java/org/cytoscape/model/NetworkTestSupport.java
2011-09-23 22:01:29 UTC (rev 26958)
@@ -6,11 +6,13 @@
import org.cytoscape.event.DummyCyEventHelper;
import org.cytoscape.model.CyNetwork;
import org.cytoscape.model.CyNetworkFactory;
+import org.cytoscape.model.subnetwork.CyRootNetworkFactory;
import org.cytoscape.model.internal.CyNetworkFactoryImpl;
import org.cytoscape.model.internal.CyNetworkTableManagerImpl;
import org.cytoscape.model.internal.CyTableFactoryImpl;
import org.cytoscape.model.internal.CyTableManagerImpl;
+import org.cytoscape.model.internal.CyRootNetworkFactoryImpl;
import org.cytoscape.service.util.CyServiceRegistrar;
import static org.mockito.Mockito.*;
@@ -22,17 +24,16 @@
protected CyEventHelper eventHelper;
protected CyTableManagerImpl tableMgr;
protected CyNetworkTableManagerImpl networkTableMgr;
+ protected CyRootNetworkFactory rootNetworkFactory;
public NetworkTestSupport() {
eventHelper = new DummyCyEventHelper();
tableMgr = mock(CyTableManagerImpl.class);
networkTableMgr = mock(CyNetworkTableManagerImpl.class);
final CyServiceRegistrar serviceRegistrar =
mock(CyServiceRegistrar.class);
- final CyTableFactoryImpl tableFactory =
- new CyTableFactoryImpl(eventHelper,
mock(Interpreter.class), serviceRegistrar);
- networkFactory =
- new CyNetworkFactoryImpl(eventHelper, tableMgr,
networkTableMgr, tableFactory,
- serviceRegistrar);
+ final CyTableFactoryImpl tableFactory = new
CyTableFactoryImpl(eventHelper, mock(Interpreter.class), serviceRegistrar);
+ networkFactory = new CyNetworkFactoryImpl(eventHelper,
tableMgr, networkTableMgr, tableFactory, serviceRegistrar);
+ rootNetworkFactory = new CyRootNetworkFactoryImpl();
}
public CyNetwork getNetwork() {
@@ -42,6 +43,10 @@
public CyNetworkFactory getNetworkFactory() {
return networkFactory;
}
+
+ public CyRootNetworkFactory getRootNetworkFactory() {
+ return rootNetworkFactory;
+ }
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.