Changeset 30557 in osm


Ignore:
Timestamp:
2014-08-04T20:54:54+02:00 (10 years ago)
Author:
donvip
Message:

[josm_turnrestrictions] fix unit tests

Location:
applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilderTest.groovy

    r30555 r30557  
    185185           tr = builder.build([w2,w1,n2])
    186186           
    187            double a = interesectionAngle(w2, w1)
     187           double a = intersectionAngle(w2, w1)
    188188           println "a=" + Math.toDegrees(a)
    189189           
     
    377377                 Way to = nw(2,n2,n3)
    378378                 
    379                  double a = TurnRestrictionBuilder.interesectionAngle(from, to)
     379                 double a = TurnRestrictionBuilder.intersectionAngle(from, to)
    380380                 RelativeWayJoinOrientation o = TurnRestrictionBuilder.determineWayJoinOrientation(from,to)
    381381                 assert Math.toDegrees(a) == -90
     
    387387                 from = nw(1,n2,n1)
    388388                 to = nw(2,n2,n3)
    389                  a = TurnRestrictionBuilder.interesectionAngle(from, to)
     389                 a = TurnRestrictionBuilder.intersectionAngle(from, to)
    390390                 o = TurnRestrictionBuilder.determineWayJoinOrientation(from,to)
    391391                 assert Math.toDegrees(a) == -90
     
    397397                 from = nw(1,n1,n2)
    398398                 to = nw(2,n3,n2)
    399                  a = TurnRestrictionBuilder.interesectionAngle(from, to)
     399                 a = TurnRestrictionBuilder.intersectionAngle(from, to)
    400400                 o = TurnRestrictionBuilder.determineWayJoinOrientation(from,to)
    401401                 assert Math.toDegrees(a) == -90
     
    407407                 from = nw(1,n2,n1)
    408408                 to = nw(2,n3,n2)
    409                  a = TurnRestrictionBuilder.interesectionAngle(from, to)
     409                 a = TurnRestrictionBuilder.intersectionAngle(from, to)
    410410                 o = TurnRestrictionBuilder.determineWayJoinOrientation(from,to)
    411411                 assert Math.toDegrees(a) == -90
     
    432432                Way to = nw(2,n2,n3)
    433433               
    434                 double a = TurnRestrictionBuilder.interesectionAngle(from, to)
     434                double a = TurnRestrictionBuilder.intersectionAngle(from, to)
    435435                assert Math.toDegrees(a) == 90
    436436               
     
    440440                from = nw(1,n2,n1)
    441441                to = nw(2,n2,n3)
    442                 a = TurnRestrictionBuilder.interesectionAngle(from, to)
     442                a = TurnRestrictionBuilder.intersectionAngle(from, to)
    443443                assert Math.toDegrees(a) == 90
    444444
     
    448448                from = nw(1,n1,n2)
    449449                to = nw(2,n3,n2)
    450                 a = TurnRestrictionBuilder.interesectionAngle(from, to)
     450                a = TurnRestrictionBuilder.intersectionAngle(from, to)
    451451                assert Math.toDegrees(a) == 90
    452452
     
    456456                from = nw(1,n2,n1)
    457457                to = nw(2,n3,n2)
    458                 a = TurnRestrictionBuilder.interesectionAngle(from, to)
     458                a = TurnRestrictionBuilder.intersectionAngle(from, to)
    459459                assert Math.toDegrees(a) == 90
    460460        }
     
    484484           Way to = nw(2,n2,n3)
    485485           
    486            double a = TurnRestrictionBuilder.interesectionAngle(from, to)
     486           double a = TurnRestrictionBuilder.intersectionAngle(from, to)
    487487           assert Math.toDegrees(a) == 45
    488488           
     
    492492           from = nw(1,n2,n1)
    493493           to = nw(2,n2,n3)
    494            a = TurnRestrictionBuilder.interesectionAngle(from, to)
     494           a = TurnRestrictionBuilder.intersectionAngle(from, to)
    495495           assert Math.toDegrees(a) == 45
    496496
     
    500500           from = nw(1,n1,n2)
    501501           to = nw(2,n3,n2)
    502            a = TurnRestrictionBuilder.interesectionAngle(from, to)
     502           a = TurnRestrictionBuilder.intersectionAngle(from, to)
    503503           assert Math.toDegrees(a) == 45
    504504
     
    508508           from = nw(1,n2,n1)
    509509           to = nw(2,n3,n2)
    510            a = TurnRestrictionBuilder.interesectionAngle(from, to)
     510           a = TurnRestrictionBuilder.intersectionAngle(from, to)
    511511           assert Math.toDegrees(a) == 45
    512512   }
     
    535535         Way to = nw(2,n2,n3)
    536536         
    537          double a = TurnRestrictionBuilder.interesectionAngle(from, to)
     537         double a = TurnRestrictionBuilder.intersectionAngle(from, to)
    538538         assert Math.toDegrees(a) == -45
    539539         
     
    543543         from = nw(1,n2,n1)
    544544         to = nw(2,n2,n3)
    545          a = TurnRestrictionBuilder.interesectionAngle(from, to)
     545         a = TurnRestrictionBuilder.intersectionAngle(from, to)
    546546         assert Math.toDegrees(a) == -45
    547547
     
    551551         from = nw(1,n1,n2)
    552552         to = nw(2,n3,n2)
    553          a = TurnRestrictionBuilder.interesectionAngle(from, to)
     553         a = TurnRestrictionBuilder.intersectionAngle(from, to)
    554554         assert Math.toDegrees(a) == -45
    555555
     
    559559         from = nw(1,n2,n1)
    560560         to = nw(2,n3,n2)
    561          a = TurnRestrictionBuilder.interesectionAngle(from, to)
     561         a = TurnRestrictionBuilder.intersectionAngle(from, to)
    562562         assert Math.toDegrees(a) == -45
    563563 }
  • applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor/BasicEditorPanelTest.java

    r23192 r30557  
    66import javax.swing.JFrame;
    77
     8import org.junit.Ignore;
    89import org.openstreetmap.josm.data.osm.DataSet;
    910import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     
    1314 *   
    1415 */
     16@Ignore("no test")
    1517public class BasicEditorPanelTest extends JFrame {
    1618
  • applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionComboBoxTest.java

    r23192 r30557  
    77import javax.swing.JFrame;
    88
     9import org.junit.Ignore;
    910import org.openstreetmap.josm.data.osm.DataSet;
    1011import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     
    1516 *
    1617 */
     18@Ignore("no test")
    1719public class TurnRestrictionComboBoxTest extends JFrame {
    1820   
  • applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditorTest.java

    r23192 r30557  
    33import javax.swing.JFrame;
    44
     5import org.junit.Ignore;
    56import org.openstreetmap.josm.data.osm.DataSet;
    67import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     
    910 *
    1011 */
     12@Ignore("no test")
    1113public class TurnRestrictionEditorTest extends JFrame {
    1214   
  • applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionLegEditorTest.java

    r30532 r30557  
    1616import javax.swing.JScrollPane;
    1717
     18import org.junit.Ignore;
    1819import org.openstreetmap.josm.data.coor.LatLon;
    1920import org.openstreetmap.josm.data.osm.DataSet;
     
    3233 * {@see TurnRestrictionLegEditor}
    3334 */
     35@Ignore("no test")
    3436public class TurnRestrictionLegEditorTest extends JFrame {
    3537   
  • applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor/VehicleExceptionEditorTest.java

    r23192 r30557  
    66import javax.swing.JFrame;
    77
     8import org.junit.Ignore;
    89import org.openstreetmap.josm.data.osm.DataSet;
    910import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     
    1415 *
    1516 */
     17@Ignore("no test")
    1618public class VehicleExceptionEditorTest extends JFrame {
    1719    TurnRestrictionEditorModel model;
  • applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/editor/ViaListTest.java

    r30532 r30557  
    1010import javax.swing.JList;
    1111
     12import org.junit.Ignore;
    1213import org.openstreetmap.josm.data.coor.LatLon;
    1314import org.openstreetmap.josm.data.osm.DataSet;
     
    2122 *
    2223 */
     24@Ignore("no test")
    2325public class ViaListTest extends JFrame {
    2426   
  • applications/editors/josm/plugins/turnrestrictions/test/unit/org/openstreetmap/josm/plugins/turnrestrictions/qa/IssuesViewTest.java

    r23192 r30557  
    1010import javax.swing.JScrollPane;
    1111
     12import org.junit.Ignore;
    1213import org.openstreetmap.josm.data.osm.DataSet;
    1314import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     
    1819 * Simple test application for layout and functionality of the issues view.
    1920 */
     21@Ignore("no test")
    2022public class IssuesViewTest extends JFrame {
    2123    private IssuesModel model;
Note: See TracChangeset for help on using the changeset viewer.