Missed those methods in last commit: Assertion methods can be static
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1555038 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4af9eed43d
commit
d230e3a426
|
@ -239,7 +239,7 @@ public void testToLocale_3Part() {
|
||||||
* @param defaultLocale the input default locale
|
* @param defaultLocale the input default locale
|
||||||
* @param expected expected results
|
* @param expected expected results
|
||||||
*/
|
*/
|
||||||
private void assertLocaleLookupList(final Locale locale, final Locale defaultLocale, final Locale[] expected) {
|
private static void assertLocaleLookupList(final Locale locale, final Locale defaultLocale, final Locale[] expected) {
|
||||||
final List<Locale> localeList = defaultLocale == null ?
|
final List<Locale> localeList = defaultLocale == null ?
|
||||||
LocaleUtils.localeLookupList(locale) :
|
LocaleUtils.localeLookupList(locale) :
|
||||||
LocaleUtils.localeLookupList(locale, defaultLocale);
|
LocaleUtils.localeLookupList(locale, defaultLocale);
|
||||||
|
@ -386,7 +386,7 @@ public void testIsAvailableLocale() {
|
||||||
* @param country
|
* @param country
|
||||||
* @param languages array of languages that should be returned
|
* @param languages array of languages that should be returned
|
||||||
*/
|
*/
|
||||||
private void assertLanguageByCountry(final String country, final String[] languages) {
|
private static void assertLanguageByCountry(final String country, final String[] languages) {
|
||||||
final List<Locale> list = LocaleUtils.languagesByCountry(country);
|
final List<Locale> list = LocaleUtils.languagesByCountry(country);
|
||||||
final List<Locale> list2 = LocaleUtils.languagesByCountry(country);
|
final List<Locale> list2 = LocaleUtils.languagesByCountry(country);
|
||||||
assertNotNull(list);
|
assertNotNull(list);
|
||||||
|
@ -437,7 +437,7 @@ public void testLanguagesByCountry() {
|
||||||
* @param language
|
* @param language
|
||||||
* @param countries array of countries that should be returned
|
* @param countries array of countries that should be returned
|
||||||
*/
|
*/
|
||||||
private void assertCountriesByLanguage(final String language, final String[] countries) {
|
private static void assertCountriesByLanguage(final String language, final String[] countries) {
|
||||||
final List<Locale> list = LocaleUtils.countriesByLanguage(language);
|
final List<Locale> list = LocaleUtils.countriesByLanguage(language);
|
||||||
final List<Locale> list2 = LocaleUtils.countriesByLanguage(language);
|
final List<Locale> list2 = LocaleUtils.countriesByLanguage(language);
|
||||||
assertNotNull(list);
|
assertNotNull(list);
|
||||||
|
|
Loading…
Reference in New Issue