Search in sources :

Example 1 with BasicCyProperty

use of org.cytoscape.property.BasicCyProperty in project cytoscape-impl by cytoscape.

the class BookmarksCyProperty method setup.

@Before
public void setup() {
    Properties coreP = new Properties();
    coreP.setProperty("cyPropertyName", "cytoscape3.props");
    Properties p = new Properties();
    p.setProperty("cyPropertyName", "bookmarks");
    CyProperty<Properties> cyProp = new BasicCyProperty(new Properties(), CyProperty.SavePolicy.CONFIG_DIR);
    registerMockService(CyProperty.class, cyProp, coreP);
    BookmarksCyProperty cyBookProp = new BookmarksCyProperty(new Bookmarks(), CyProperty.SavePolicy.CONFIG_DIR);
    registerMockService(CyProperty.class, cyBookProp, p);
    registerMockService(BookmarksUtil.class);
    registerMockService(FileUtil.class);
}
Also used : Bookmarks(org.cytoscape.property.bookmark.Bookmarks) BasicCyProperty(org.cytoscape.property.BasicCyProperty) Properties(java.util.Properties) Before(org.junit.Before)

Aggregations

Properties (java.util.Properties)1 BasicCyProperty (org.cytoscape.property.BasicCyProperty)1 Bookmarks (org.cytoscape.property.bookmark.Bookmarks)1 Before (org.junit.Before)1