ResourceMaps { public static Map<String, Object> getLocalResourceMap(final Class clazz, final String resourceMapBaseName, final Locale locale) { return getResourceMap(clazz, resourceMapBaseName, locale, true); } private  ResourceMaps(); static Map<String, Object> getResourceMap(final Class clazz, final String resourceMapBaseName, final Locale locale); static Map<String, Object> getResourceMap(final Class clazz, final String resourceMapBaseName); static Map<String, Object> getLocalResourceMap(final Class clazz, final String resourceMapBaseName, final Locale locale); static Map<String, Object> getLocalResourceMap(final Class clazz, final String resourceMapBaseName);  }
@Test public void getLocalResourceMap() throws Exception { Class c; c = Foobar.class; internalGetLocalResourceMap(c, "resources", HESSIAN_LOCALE, new String[][]{ {"attention.txt", "Uffbasse!"}, {"ok.txt", "OK"}, {"cancel.txt", "Abbruch"}, }); internalGetLocalResourceMap(c, "resources", GERMANY_LOCALE, new String[][]{ {"attention.txt", "Achtung!"}, {"ok.txt", "OK"}, {"cancel.txt", "Abbruch"}, }); internalGetLocalResourceMap(c, "resources", null, new String[][]{ {"attention.txt", "Attention!"}, {"ok.txt", "OK"}, {"cancel.txt", "Cancel"}, }); c = c.getSuperclass(); internalGetLocalResourceMap(c, "resources", null, new String[][]{ {"base.txt", "BaseClass"}, }); }