Search in sources :

Example 1 with DiscussionEntryHtmlConverter

use of com.instructure.pandautils.discussions.DiscussionEntryHtmlConverter in project instructure-android by instructure.

the class DiscussionEntryHTMLConverterTest method getReadState_unread.

@Test
public void getReadState_unread() throws Exception {
    DiscussionEntryHtmlConverter converter = new DiscussionEntryHtmlConverter();
    DiscussionEntry discussionEntry = new DiscussionEntry();
    discussionEntry.setUnread(true);
    String testValue = converter.getReadState(discussionEntry);
    assertEquals("unread", testValue);
}
Also used : DiscussionEntryHtmlConverter(com.instructure.pandautils.discussions.DiscussionEntryHtmlConverter) DiscussionEntry(com.instructure.canvasapi2.models.DiscussionEntry) Test(org.junit.Test)

Example 2 with DiscussionEntryHtmlConverter

use of com.instructure.pandautils.discussions.DiscussionEntryHtmlConverter in project instructure-android by instructure.

the class DiscussionEntryHTMLConverterTest method getReadState_read.

@Test
public void getReadState_read() throws Exception {
    DiscussionEntryHtmlConverter converter = new DiscussionEntryHtmlConverter();
    DiscussionEntry discussionEntry = new DiscussionEntry();
    discussionEntry.setUnread(false);
    String testValue = converter.getReadState(discussionEntry);
    assertEquals("read", testValue);
}
Also used : DiscussionEntryHtmlConverter(com.instructure.pandautils.discussions.DiscussionEntryHtmlConverter) DiscussionEntry(com.instructure.canvasapi2.models.DiscussionEntry) Test(org.junit.Test)

Aggregations

DiscussionEntry (com.instructure.canvasapi2.models.DiscussionEntry)2 DiscussionEntryHtmlConverter (com.instructure.pandautils.discussions.DiscussionEntryHtmlConverter)2 Test (org.junit.Test)2