Search in sources :

Example 1 with CyNetworkFactoryImpl

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();
}
Also used : CyTableFactoryImpl(org.cytoscape.model.internal.CyTableFactoryImpl) Interpreter(org.cytoscape.equations.Interpreter) CyNetworkManagerImpl(org.cytoscape.model.internal.CyNetworkManagerImpl) CyNetworkTableManagerImpl(org.cytoscape.model.internal.CyNetworkTableManagerImpl) InterpreterImpl(org.cytoscape.equations.internal.interpreter.InterpreterImpl) CyNetworkFactoryImpl(org.cytoscape.model.internal.CyNetworkFactoryImpl) CyTableManagerImpl(org.cytoscape.model.internal.CyTableManagerImpl) Before(org.junit.Before)

Example 2 with CyNetworkFactoryImpl

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);
}
Also used : EquationParserImpl(org.cytoscape.equations.internal.EquationParserImpl) CyTableFactoryImpl(org.cytoscape.model.internal.CyTableFactoryImpl) Interpreter(org.cytoscape.equations.Interpreter) EquationCompilerImpl(org.cytoscape.equations.internal.EquationCompilerImpl) CyNetworkManagerImpl(org.cytoscape.model.internal.CyNetworkManagerImpl) CyNetworkTableManagerImpl(org.cytoscape.model.internal.CyNetworkTableManagerImpl) DummyCyEventHelper(org.cytoscape.event.DummyCyEventHelper) InterpreterImpl(org.cytoscape.equations.internal.interpreter.InterpreterImpl) CyNetworkFactoryImpl(org.cytoscape.model.internal.CyNetworkFactoryImpl) EquationCompiler(org.cytoscape.equations.EquationCompiler) CyTableManagerImpl(org.cytoscape.model.internal.CyTableManagerImpl) Before(org.junit.Before)

Aggregations

Interpreter (org.cytoscape.equations.Interpreter)2 InterpreterImpl (org.cytoscape.equations.internal.interpreter.InterpreterImpl)2 CyNetworkFactoryImpl (org.cytoscape.model.internal.CyNetworkFactoryImpl)2 CyNetworkManagerImpl (org.cytoscape.model.internal.CyNetworkManagerImpl)2 CyNetworkTableManagerImpl (org.cytoscape.model.internal.CyNetworkTableManagerImpl)2 CyTableFactoryImpl (org.cytoscape.model.internal.CyTableFactoryImpl)2 CyTableManagerImpl (org.cytoscape.model.internal.CyTableManagerImpl)2 Before (org.junit.Before)2 EquationCompiler (org.cytoscape.equations.EquationCompiler)1 EquationCompilerImpl (org.cytoscape.equations.internal.EquationCompilerImpl)1 EquationParserImpl (org.cytoscape.equations.internal.EquationParserImpl)1 DummyCyEventHelper (org.cytoscape.event.DummyCyEventHelper)1