@Test public void testSetTables() { CyTable t1 = mock(CyTable.class); CyTable t2 = mock(CyTable.class); Set<CyTableMetadata> ts = new HashSet<CyTableMetadata>(); CyTableMetadata m1 = new CyTableMetadataImpl(t1); CyTableMetadata m2 = new CyTableMetadataImpl(t2); ts.add( m1 ); ts.add( m2 ); session = new CySession.Builder().tables( ts ).build(); assertNotNull(session); assertNotNull(session.getTables()); assertEquals(2,session.getTables().size()); assertTrue(session.getTables().contains( m1 )); assertTrue(session.getTables().contains( m2 )); }
public Set<CyTableMetadata> getTables() { return tables; }
CySession { public Set<CyTableMetadata> getTables() { return tables; } }
CySession { public Set<CyTableMetadata> getTables() { return tables; } private  CySession(Builder b); }
CySession { public Set<CyTableMetadata> getTables() { return tables; } 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 Set<CyTableMetadata> getTables() { return tables; } 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);  }