queryPresenter = new QueryPresenter(mockRpcService, eventBus, mockDisplay);
}
public void testContactSort() {
ArrayList<ModelDetailsLight> modelDetailsLight = new ArrayList<ModelDetailsLight>();
modelDetailsLight.add(new ModelDetailsLight("0", new String [] {"c_contact","1"}));
modelDetailsLight.add(new ModelDetailsLight("1", new String [] {"b_contact","2"}));
modelDetailsLight.add(new ModelDetailsLight("2", new String [] {"a_contact","3"}));
queryPresenter.setContactDetails(modelDetailsLight);
// queryPresenter.sortContactDetails();
assertTrue(queryPresenter.getContactDetail(0).getDisplayName().equals("a_contact"));
assertTrue(queryPresenter.getContactDetail(1).getDisplayName().equals("b_contact"));
assertTrue(queryPresenter.getContactDetail(2).getDisplayName().equals("c_contact"));