FileDocCategorySizeDatePackage
SystemPropertiesTest.javaAPI DocAndroid 5.1 API1639Thu Mar 12 22:22:12 GMT 2015android.os

SystemPropertiesTest

public class SystemPropertiesTest extends TestCase

Fields Summary
private static final String
KEY
Constructors Summary
Methods Summary
public voidtestProperties()

    
         
        if (false) {
        String value;
       
        SystemProperties.set(KEY, "");
        value = SystemProperties.get(KEY, "default");
        assertEquals("default", value);

        SystemProperties.set(KEY, "AAA");
        value = SystemProperties.get(KEY, "default");
        assertEquals("AAA", value);

        value = SystemProperties.get(KEY);
        assertEquals("AAA", value);

        SystemProperties.set(KEY, "");
        value = SystemProperties.get(KEY, "default");
        assertEquals("default", value);

        value = SystemProperties.get(KEY);
        assertEquals("", value);
        }