
org.robolectric.shadows.ShadowICU Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
An alternative Android testing framework.
The newest version!
package org.robolectric.shadows;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import java.util.Locale;
import static android.os.Build.VERSION_CODES;
import static android.os.Build.VERSION_CODES.KITKAT_WATCH;
import static android.os.Build.VERSION_CODES.LOLLIPOP;
@Implements(value = libcore.icu.ICU.class, isInAndroidSdk = false)
public class ShadowICU {
@Implementation
public static String addLikelySubtags(String locale) {
return "en-US";
}
@Implementation(minSdk = LOLLIPOP)
public static String getBestDateTimePattern(String skeleton, Locale locale) {
return skeleton;
}
@Implementation(maxSdk = KITKAT_WATCH)
public static String getBestDateTimePattern(String skeleton, String locale) {
return skeleton;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy