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);
}
Aggregations