Merge "Expand TestableDeviceConfigTest#getProperties()." into rvc-dev am: 6a2213ae2e am: 88eda8f2e6 am: f5518ca650

Change-Id: I2c174e02b4f5ec3bacd678fd4236079ccf94f66a
This commit is contained in:
Automerger Merge Worker
2020-03-08 07:05:20 +00:00

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