Changeset 7005 in josm for trunk/test/unit/org/openstreetmap/josm/data/projection
- Timestamp:
- 2014-04-26T17:39:23+02:00 (12 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/projection
- Files:
-
- 2 edited
-
ProjectionRefTest.java (modified) (1 diff)
-
ProjectionRegressionTest.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
r6995 r7005 33 33 */ 34 34 public static void main(String[] args) { 35 Map<String, Projection> allCodes = new HashMap< String, Projection>();35 Map<String, Projection> allCodes = new HashMap<>(); 36 36 for (ProjectionChoice pc : ProjectionPreference.getProjectionChoices()) { 37 37 for (String code : pc.allCodes()) { -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java
r6995 r7005 58 58 setUp(); 59 59 60 Map<String, Projection> supportedCodesMap = new HashMap< String, Projection>();60 Map<String, Projection> supportedCodesMap = new HashMap<>(); 61 61 for (ProjectionChoice pc : ProjectionPreference.getProjectionChoices()) { 62 62 for (String code : pc.allCodes()) { … … 68 68 } 69 69 70 List<TestData> prevData = new ArrayList< TestData>();70 List<TestData> prevData = new ArrayList<>(); 71 71 if (new File(PROJECTION_DATA_FILE).exists()) { 72 72 prevData = readData(); 73 73 } 74 Map<String,TestData> prevCodesMap = new HashMap< String,TestData>();74 Map<String,TestData> prevCodesMap = new HashMap<>(); 75 75 for (TestData data : prevData) { 76 76 prevCodesMap.put(data.code, data); 77 77 } 78 78 79 Set<String> codesToWrite = new LinkedHashSet< String>();79 Set<String> codesToWrite = new LinkedHashSet<>(); 80 80 for (TestData data : prevData) { 81 81 if (supportedCodesMap.containsKey(data.code)) { … … 116 116 private static List<TestData> readData() throws IOException, FileNotFoundException { 117 117 BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(PROJECTION_DATA_FILE), Utils.UTF_8)); 118 List<TestData> result = new ArrayList< TestData>();118 List<TestData> result = new ArrayList<>(); 119 119 String line; 120 120 while ((line = in.readLine()) != null) { … … 159 159 public void regressionTest() throws IOException, FileNotFoundException { 160 160 List<TestData> allData = readData(); 161 Set<String> dataCodes = new HashSet< String>();161 Set<String> dataCodes = new HashSet<>(); 162 162 for (TestData data : allData) { 163 163 dataCodes.add(data.code);
Note:
See TracChangeset
for help on using the changeset viewer.
