use of org.matrix.androidsdk.rest.model.bingrules.RoomMemberCountCondition in project matrix-android-sdk by matrix-org.
the class ConditionDeserializerTest method testRoomMemberCountCondition.
@Test
public void testRoomMemberCountCondition() {
String conditionJson = "{'kind': 'room_member_count', 'is': 'is1'}";
Condition condition = gson.fromJson(conditionJson, Condition.class);
assertTrue(condition instanceof RoomMemberCountCondition);
RoomMemberCountCondition roomMemberCountConditionCondition = (RoomMemberCountCondition) condition;
assertEquals("is1", roomMemberCountConditionCondition.is);
}
Aggregations