use of com.instructure.canvasapi2.models.Conversation in project instructure-android by instructure.
the class ConversationTest method getLastAuthoredMessageSent.
@Test
public void getLastAuthoredMessageSent() {
Conversation conversation = new Conversation();
conversation.setLastAuthoredMessageAt("2008-09-15T15:53:00+05:00");
Date expectedDate = new Date(1221475980000L);
assertEquals(0, expectedDate.compareTo(conversation.getLastAuthoredMessageSent()));
}
use of com.instructure.canvasapi2.models.Conversation in project instructure-android by instructure.
the class ConversationTest method getWorkflowState_archived.
@Test
public void getWorkflowState_archived() {
Conversation conversation = new Conversation();
conversation.setWorkflowState("ARCHIVED");
assertEquals(Conversation.WorkflowState.ARCHIVED, conversation.getWorkflowState());
}
use of com.instructure.canvasapi2.models.Conversation in project instructure-android by instructure.
the class ConversationTest method isMonologue_emptyAudience.
@Test
public void isMonologue_emptyAudience() {
Conversation conversation = new Conversation();
conversation.setAudience(new ArrayList<Long>());
assertEquals(true, conversation.isMonologue(0L));
}
use of com.instructure.canvasapi2.models.Conversation in project instructure-android by instructure.
the class ConversationTest method getWorkflowState_unread.
@Test
public void getWorkflowState_unread() {
Conversation conversation = new Conversation();
conversation.setWorkflowState("unread");
assertEquals(Conversation.WorkflowState.UNREAD, conversation.getWorkflowState());
}
use of com.instructure.canvasapi2.models.Conversation in project instructure-android by instructure.
the class ConversationTest method getWorkflowState_unknown.
@Test
public void getWorkflowState_unknown() {
Conversation conversation = new Conversation();
assertEquals(Conversation.WorkflowState.UNKNOWN, conversation.getWorkflowState());
}
Aggregations