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);
}
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);
}
Aggregations