@Test
public void testGetBoardMemberActivityComments() {
CardWithActions action1 = new CardWithActions();
action1.setId("idCard1");
CardWithActions action2 = new CardWithActions();
action1.setId("idCard2");
CardWithActions action3 = new CardWithActions();
action1.setId("idCard3");
when(httpClient.get(anyString(), any(Class.class), (String[]) anyVararg())).thenReturn(new CardWithActions[] { action1, action2, action3 });
List<CardWithActions> commentActivity = trello.getBoardMemberActivity("idBoard",
"memberId", "commentCard");
assertThat(commentActivity).isNotNull();
assertThat(commentActivity).hasSize(3);
assertThat(commentActivity.get(0).getId()).isEqualTo("idCard3");
verify(httpClient).get(
eq("https://api.trello.com/1/boards/{boardId}/members/{memberId}/cards?key={applicationKey}&token={userToken}&actions=commentCard"),
eq(CardWithActions[].class), eq("idBoard"), eq("memberId"), eq(""), eq(""));
verifyNoMoreInteractions(httpClient);
}
}