use of org.matrix.androidsdk.rest.model.bingrules.DeviceCondition in project matrix-android-sdk by matrix-org.
the class ConditionDeserializerTest method testDeviceCondition.
@Test
public void testDeviceCondition() {
String conditionJson = "{'kind': 'device', 'profile_tag': 'proftag1'}";
Condition condition = gson.fromJson(conditionJson, Condition.class);
assertTrue(condition instanceof DeviceCondition);
DeviceCondition deviceCondition = (DeviceCondition) condition;
assertEquals("proftag1", deviceCondition.profileTag);
}
Aggregations