Ignore:
Timestamp:
2014-08-04T02:45:06+02:00 (11 years ago)
Author:
donvip
Message:

[josm_plugins] support for unit tests

Location:
applications/editors/josm/plugins/graphview/test
Files:
1 added
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/test

    • Property svn:externals set to
    • Property svn:ignore set to
      build
      jacoco.exec
      report
  • applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/access/AccessRulesetReaderTest.java

    r23189 r30550  
    2525    public void testReadAccessRuleset_valid_classes() throws IOException {
    2626
    27         InputStream is = new FileInputStream("plugins/graphview/test/files/accessRuleset_valid.xml");
     27        InputStream is = new FileInputStream("plugins/graphview/test/data/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/files/accessRuleset_valid.xml");
     53        InputStream is = new FileInputStream("plugins/graphview/test/data/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/files/accessRuleset_valid.xml");
     69        InputStream is = new FileInputStream("plugins/graphview/test/data/accessRuleset_valid.xml");
    7070        AccessRuleset ruleset = AccessRulesetReader.readAccessRuleset(is);
    7171        assertNotNull(ruleset);
     
    107107        return new MapBasedTagGroup(tagMap);
    108108    }
    109 
    110109}
  • applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/util/TagConditionLogicTest.java

    r23189 r30550  
    11package org.openstreetmap.josm.plugins.graphview.core.util;
    2 import static junit.framework.Assert.assertFalse;
    3 import static junit.framework.Assert.assertTrue;
     2import static org.junit.Assert.assertFalse;
     3import static org.junit.Assert.assertTrue;
    44
    55import java.util.Arrays;
  • applications/editors/josm/plugins/graphview/test/unit/org/openstreetmap/josm/plugins/graphview/core/util/ValueStringParserTest.java

    r23189 r30550  
    11package org.openstreetmap.josm.plugins.graphview.core.util;
    22
    3 import static junit.framework.Assert.assertNull;
     3import static org.junit.Assert.assertNull;
    44import static org.openstreetmap.josm.plugins.graphview.core.util.ValueStringParser.parseMeasure;
    55import static org.openstreetmap.josm.plugins.graphview.core.util.ValueStringParser.parseSpeed;
Note: See TracChangeset for help on using the changeset viewer.