Changeset 7944 in josm for trunk/test


Ignore:
Timestamp:
2015-01-09T00:28:30+01:00 (5 years ago)
Author:
bastiK
Message:

add regression data for new projections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java

    r7082 r7944  
    5858
    5959        Map<String, Projection> supportedCodesMap = new HashMap<>();
    60         for (ProjectionChoice pc : ProjectionPreference.getProjectionChoices()) {
    61             for (String code : pc.allCodes()) {
    62                 Collection<String> pref = pc.getPreferencesFromCode(code);
    63                 pc.setPreferences(pref);
    64                 Projection p = pc.getProjection();
    65                 supportedCodesMap.put(code, p);
    66             }
     60        for (String code : Projections.getAllProjectionCodes()) {
     61            supportedCodesMap.put(code, Projections.getProjectionByCode(code));
    6762        }
    6863
Note: See TracChangeset for help on using the changeset viewer.