Changeset 14062 in josm for trunk/test/unit/org/openstreetmap/josm/testutils/mockers/HelpAwareOptionPaneMocker.java
- Timestamp:
- 2018-07-28T20:28:36+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/mockers/HelpAwareOptionPaneMocker.java
r14052 r14062 101 101 )); 102 102 } 103 // buttons are numbered with 1-based indexing 104 return optIndex.getAsInt() + 1; 103 return optIndex.getAsInt(); 105 104 } 106 105 } … … 162 161 retval 163 162 )); 164 } else if (retval > (options == null ? 0 : options.length )) { // NOTE 1-based indexing163 } else if (retval > (options == null ? 0 : options.length-1)) { 165 164 fail(String.format( 166 165 "Invalid result for HelpAwareOptionPane: %s (in call with options = %s)",
Note:
See TracChangeset
for help on using the changeset viewer.