Package org.robolectric.shadows
Class ShadowSystemProperties
java.lang.Object
org.robolectric.shadows.ShadowSystemProperties
@Implements(value=android.os.SystemProperties.class,
isInAndroidSdk=false)
public class ShadowSystemProperties
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringnative_get(String key) protected static Stringnative_get(String key, String def) protected static booleannative_get_boolean(String key, boolean def) protected static intnative_get_int(String key, int def) protected static longnative_get_long(String key, long def) protected static voidnative_set(String key, String val) static voidOverrides the system property for testing.static voidreset()
-
Constructor Details
-
ShadowSystemProperties
public ShadowSystemProperties()
-
-
Method Details
-
native_get
-
native_get
-
native_get_int
-
native_get_long
-
native_get_boolean
-
native_set
-
override
Overrides the system property for testing. Similar to the Android implementation, the value may be coerced to other types like boolean or long depending on the get method that is used.Note: Use
ShadowBuildinstead for changing fields inBuild. -
reset
-