Changeset 8959 in josm for trunk/src/org


Ignore:
Timestamp:
2015-10-27T20:02:56+01:00 (4 years ago)
Author:
Don-vip
Message:

improve unit test detecting invalid presets

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r8870 r8959  
    265265
    266266    /**
     267     * Clears the list of last error and warning messages.
     268     * @since 8959
     269     */
     270    public static void clearLastErrorAndWarnings() {
     271        ERRORS_AND_WARNINGS.clear();
     272    }
     273
     274    /**
    267275     * Prints an error message if logging is on.
    268276     * @param msg The message to print.
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java

    r8958 r8959  
    196196                    });
    197197                } else {
    198                     Main.warn(PRESET_ICON_ERROR_MSG_PREFIX + iconName);
     198                    Main.warn(TaggingPreset.this + ": " + PRESET_ICON_ERROR_MSG_PREFIX + iconName);
    199199                }
    200200            }
Note: See TracChangeset for help on using the changeset viewer.