use of org.cytoscape.model.internal.CyNetworkFactoryImpl in project cytoscape-impl by cytoscape.
the class CyNetworkTableManagerTest method setUp.
@Before
public void setUp() {
super.setUp();
final Interpreter interpreter = new InterpreterImpl();
when(serviceRegistrar.getService(CyEventHelper.class)).thenReturn(eh);
when(serviceRegistrar.getService(CyNetworkNaming.class)).thenReturn(namingUtil);
when(serviceRegistrar.getService(EquationCompiler.class)).thenReturn(compiler);
when(serviceRegistrar.getService(Interpreter.class)).thenReturn(interpreter);
this.mgr = new CyNetworkTableManagerImpl();
this.networkManager = new CyNetworkManagerImpl(serviceRegistrar);
this.tableManager = new CyTableManagerImpl(mgr, networkManager, serviceRegistrar);
this.tableFactory = new CyTableFactoryImpl(eh, serviceRegistrar);
this.networkFactory = new CyNetworkFactoryImpl(eh, tableManager, mgr, tableFactory, serviceRegistrar);
goodNetwork = networkFactory.createNetwork();
}
use of org.cytoscape.model.internal.CyNetworkFactoryImpl in project cytoscape-impl by cytoscape.
the class TestCyNetworkFactory method setUp.
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
eh = new DummyCyEventHelper(false);
Interpreter interpreter = new InterpreterImpl();
EquationCompiler compiler = new EquationCompilerImpl(new EquationParserImpl(serviceRegistrar));
when(serviceRegistrar.getService(CyEventHelper.class)).thenReturn(eh);
when(serviceRegistrar.getService(CyNetworkNaming.class)).thenReturn(namingUtil);
when(serviceRegistrar.getService(EquationCompiler.class)).thenReturn(compiler);
when(serviceRegistrar.getService(Interpreter.class)).thenReturn(interpreter);
netTblMgr = new CyNetworkTableManagerImpl();
netMgr = new CyNetworkManagerImpl(serviceRegistrar);
tblMgr = new CyTableManagerImpl(netTblMgr, netMgr, serviceRegistrar);
tblFactory = new CyTableFactoryImpl(eh, serviceRegistrar);
netFactory = new CyNetworkFactoryImpl(eh, tblMgr, netTblMgr, tblFactory, serviceRegistrar);
}
Aggregations