@Test public void testSetViewVisualStyleMap() { CyNetworkView nv1 = mock(CyNetworkView.class); CyNetworkView nv2 = mock(CyNetworkView.class); Map<CyNetworkView,String> vsm = new HashMap<CyNetworkView,String>(); vsm.put(nv1,"vs1"); vsm.put(nv2,"vs2"); session = new CySession.Builder().viewVisualStyleMap(vsm).build(); assertNotNull(session); assertNotNull(session.getViewVisualStyleMap()); assertEquals(2,session.getViewVisualStyleMap().size()); assertTrue(session.getViewVisualStyleMap().containsKey(nv1)); assertTrue(session.getViewVisualStyleMap().containsKey(nv2)); assertEquals("vs1",session.getViewVisualStyleMap().get(nv1)); assertEquals("vs2",session.getViewVisualStyleMap().get(nv2)); }
public Map<CyNetworkView, String> getViewVisualStyleMap() { return vsMap; }
CySession { public Map<CyNetworkView, String> getViewVisualStyleMap() { return vsMap; } }
CySession { public Map<CyNetworkView, String> getViewVisualStyleMap() { return vsMap; } private  CySession(Builder b); }
CySession { public Map<CyNetworkView, String> getViewVisualStyleMap() { return vsMap; } private  CySession(Builder b); Set<CyNetwork> getNetworks(); Set<CyNetworkView> getNetworkViews(); Set<CyTableMetadata> getTables(); Map<CyNetworkView, String> getViewVisualStyleMap(); Set<CyProperty<?>> getProperties(); Set<VisualStyle> getVisualStyles(); Map<String, List<File>> getAppFileListMap(); T getObject(Long oldSUID, Class<T> type); T getObject(String oldId, Class<T> type); }
CySession { public Map<CyNetworkView, String> getViewVisualStyleMap() { return vsMap; } private  CySession(Builder b); Set<CyNetwork> getNetworks(); Set<CyNetworkView> getNetworkViews(); Set<CyTableMetadata> getTables(); Map<CyNetworkView, String> getViewVisualStyleMap(); Set<CyProperty<?>> getProperties(); Set<VisualStyle> getVisualStyles(); Map<String, List<File>> getAppFileListMap(); T getObject(Long oldSUID, Class<T> type); T getObject(String oldId, Class<T> type);  }