Search in sources :

Example 1 with VisualMappingManagerImpl

use of org.cytoscape.view.vizmap.internal.VisualMappingManagerImpl in project cytoscape-impl by cytoscape.

the class VisualMappingManagerTest method setUp.

@Before
public void setUp() throws Exception {
    final VisualStyleFactory factory = mock(VisualStyleFactory.class);
    final VisualStyle dummyDefaultStyle = mock(VisualStyle.class);
    when(factory.createVisualStyle(VisualMappingManagerImpl.DEFAULT_STYLE_NAME)).thenReturn(dummyDefaultStyle);
    final CyEventHelper eventHelper = mock(CyEventHelper.class);
    final CyServiceRegistrar serviceRegistrar = mock(CyServiceRegistrar.class);
    when(serviceRegistrar.getService(CyEventHelper.class)).thenReturn(eventHelper);
    vmm = new VisualMappingManagerImpl(factory, serviceRegistrar);
}
Also used : CyEventHelper(org.cytoscape.event.CyEventHelper) VisualStyle(org.cytoscape.view.vizmap.VisualStyle) VisualMappingManagerImpl(org.cytoscape.view.vizmap.internal.VisualMappingManagerImpl) VisualStyleFactory(org.cytoscape.view.vizmap.VisualStyleFactory) CyServiceRegistrar(org.cytoscape.service.util.CyServiceRegistrar) Before(org.junit.Before)

Aggregations

CyEventHelper (org.cytoscape.event.CyEventHelper)1 CyServiceRegistrar (org.cytoscape.service.util.CyServiceRegistrar)1 VisualStyle (org.cytoscape.view.vizmap.VisualStyle)1 VisualStyleFactory (org.cytoscape.view.vizmap.VisualStyleFactory)1 VisualMappingManagerImpl (org.cytoscape.view.vizmap.internal.VisualMappingManagerImpl)1 Before (org.junit.Before)1