@Test public void testNestedEntries() { ForumController mc = forumActivity.getController(); ThreadItemList<ForumItem> dummyData = getDummyData(); verify(mc, times(1)).loadItems(rc.capture()); rc.getValue().onResult(dummyData); ThreadItemAdapter<ForumItem> adapter = forumActivity.getAdapter(); Assert.assertNotNull(adapter); assertEquals(6, adapter.getItemCount()); assertTrue(dummyData.get(0).getText() .equals(adapter.getItemAt(0).getText())); assertTrue(dummyData.get(1).getText() .equals(adapter.getItemAt(1).getText())); assertTrue(dummyData.get(2).getText() .equals(adapter.getItemAt(2).getText())); assertTrue(dummyData.get(3).getText() .equals(adapter.getItemAt(3).getText())); assertTrue(dummyData.get(4).getText() .equals(adapter.getItemAt(4).getText())); assertTrue(dummyData.get(5).getText() .equals(adapter.getItemAt(5).getText())); }
@Override protected ThreadListController<Forum, ForumItem> getController() { return forumController; }
ForumActivity extends
		ThreadListActivity<Forum, ForumItem, ThreadItemAdapter<ForumItem>> implements ForumListener { @Override protected ThreadListController<Forum, ForumItem> getController() { return forumController; } }
ForumActivity extends
		ThreadListActivity<Forum, ForumItem, ThreadItemAdapter<ForumItem>> implements ForumListener { @Override protected ThreadListController<Forum, ForumItem> getController() { return forumController; }  }
ForumActivity extends
		ThreadListActivity<Forum, ForumItem, ThreadItemAdapter<ForumItem>> implements ForumListener { @Override protected ThreadListController<Forum, ForumItem> getController() { return forumController; }  @Override void injectActivity(ActivityComponent component); @Override void onCreate(@Nullable Bundle state); @Override boolean onCreateOptionsMenu(Menu menu); @Override boolean onOptionsItemSelected(MenuItem item); @Override void onForumLeft(ContactId c); }
ForumActivity extends
		ThreadListActivity<Forum, ForumItem, ThreadItemAdapter<ForumItem>> implements ForumListener { @Override protected ThreadListController<Forum, ForumItem> getController() { return forumController; }  @Override void injectActivity(ActivityComponent component); @Override void onCreate(@Nullable Bundle state); @Override boolean onCreateOptionsMenu(Menu menu); @Override boolean onOptionsItemSelected(MenuItem item); @Override void onForumLeft(ContactId c);  }