Changeset 7005 in josm for trunk/test/unit/org/openstreetmap/josm/gui/preferences
- Timestamp:
- 2014-04-26T17:39:23+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/ToolbarPreferencesTest.java
r3175 r7005 31 31 32 32 public List<ActionParameter<?>> getActionParameters() { 33 List<ActionParameter<?>> result = new ArrayList< ActionParameter<?>>();33 List<ActionParameter<?>> result = new ArrayList<>(); 34 34 result.add(new StringActionParameter("param1")); 35 35 result.add(new StringActionParameter("param2")); … … 44 44 45 45 private void checkAction(ActionDefinition a, Object... params) { 46 Map<String, Object> expected = new HashMap< String, Object>();46 Map<String, Object> expected = new HashMap<>(); 47 47 for (int i=0; i<params.length; i+=2) { 48 48 expected.put((String)params[i], params[i+1]); … … 53 53 @Test 54 54 public void test1() { 55 Map<String, Action> actions = new HashMap< String, Action>();55 Map<String, Action> actions = new HashMap<>(); 56 56 actions.put("action", new TestAction()); 57 57 ActionParser parser = new ActionParser(actions);
Note:
See TracChangeset
for help on using the changeset viewer.