use of com.github.vase4kin.teamcityapp.agents.data.AgentDataModel in project TeamCityApp by vase4kin.
the class AgentPresenterImplTest method testCreateModel.
@Test
public void testCreateModel() throws Exception {
when(mAgent.getName()).thenReturn("name");
List<Agent> agents = new ArrayList<>();
agents.add(mAgent);
AgentDataModel dataModel = mPresenter.createModel(agents);
assertThat(dataModel.getName(0), is("name"));
assertThat(dataModel.getItemCount(), is(1));
verifyNoMoreInteractions(mView, mDataManager, mTracker, mValueExtractor);
}
Aggregations