Expand TestableDeviceConfigTest#getProperties().

Fixes: 151023102
Test: atest services/tests/mockingservicestests/src/com/android/server/testables/TestableDeviceConfigTest.java
Change-Id: I2d8acd4947ac687cc5e91756708b53ae05b5962e
This commit is contained in:
Sudheer Shanka
2020-03-06 15:58:10 -08:00
parent 606626e020
commit 420e0af413

View File

@@ -122,6 +122,12 @@ public class TestableDeviceConfigTest {
properties = DeviceConfig.getProperties(sNamespace, sKey, newKey);
assertThat(properties.getString(sKey, null)).isEqualTo(sValue);
assertThat(properties.getString(newKey, null)).isEqualTo(newValue);
String unsetKey = "key3";
properties = DeviceConfig.getProperties(sNamespace, newKey, unsetKey);
assertThat(properties.getKeyset()).containsExactly(newKey, unsetKey);
assertThat(properties.getString(newKey, null)).isEqualTo(newValue);
assertThat(properties.getString(unsetKey, null)).isNull();
}
@Test