Changeset 30559 in osm for applications/editors


Ignore:
Timestamp:
2014-08-04T21:36:45+02:00 (10 years ago)
Author:
donvip
Message:

[josm_graphview] fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/access/AccessRulesetReaderTest.java

    r30550 r30559  
    1515
    1616import org.junit.Test;
     17import org.openstreetmap.josm.TestUtils;
    1718import org.openstreetmap.josm.plugins.graphview.core.data.MapBasedTagGroup;
    1819import org.openstreetmap.josm.plugins.graphview.core.data.Tag;
    1920import org.openstreetmap.josm.plugins.graphview.core.data.TagGroup;
    20 
    2121
    2222public class AccessRulesetReaderTest {
     
    2525    public void testReadAccessRuleset_valid_classes() throws IOException {
    2626
    27         InputStream is = new FileInputStream("plugins/graphview/test/data/accessRuleset_valid.xml");
     27        InputStream is = new FileInputStream(TestUtils.getTestDataRoot()+"accessRuleset_valid.xml");
    2828        AccessRuleset ruleset = AccessRulesetReader.readAccessRuleset(is);
    2929        assertNotNull(ruleset);
     
    5151    public void testReadAccessRuleset_valid_basetags() throws IOException {
    5252
    53         InputStream is = new FileInputStream("plugins/graphview/test/data/accessRuleset_valid.xml");
     53        InputStream is = new FileInputStream(TestUtils.getTestDataRoot()+"accessRuleset_valid.xml");
    5454        AccessRuleset ruleset = AccessRulesetReader.readAccessRuleset(is);
    5555        assertNotNull(ruleset);
     
    6767    public void testReadAccessRuleset_valid_implications() throws IOException {
    6868
    69         InputStream is = new FileInputStream("plugins/graphview/test/data/accessRuleset_valid.xml");
     69        InputStream is = new FileInputStream(TestUtils.getTestDataRoot()+"accessRuleset_valid.xml");
    7070        AccessRuleset ruleset = AccessRulesetReader.readAccessRuleset(is);
    7171        assertNotNull(ruleset);
Note: See TracChangeset for help on using the changeset viewer.