@Test(expected = NullPointerException.class) public void addCourtDataToModel_Model_Null() { courtDataModelCreator.addCourtDataToModel(courtCriteria, null); }
public void addCourtDataToModel(CourtCriteria courtCriteria, ModelMap model) { Preconditions.checkNotNull(courtCriteria); Preconditions.checkNotNull(model); addCommonCourtsToModel(courtCriteria, model); addSupremeCourtChambersToModel(courtCriteria, model); }
CourtDataModelCreator { public void addCourtDataToModel(CourtCriteria courtCriteria, ModelMap model) { Preconditions.checkNotNull(courtCriteria); Preconditions.checkNotNull(model); addCommonCourtsToModel(courtCriteria, model); addSupremeCourtChambersToModel(courtCriteria, model); } }
CourtDataModelCreator { public void addCourtDataToModel(CourtCriteria courtCriteria, ModelMap model) { Preconditions.checkNotNull(courtCriteria); Preconditions.checkNotNull(model); addCommonCourtsToModel(courtCriteria, model); addSupremeCourtChambersToModel(courtCriteria, model); }  }
CourtDataModelCreator { public void addCourtDataToModel(CourtCriteria courtCriteria, ModelMap model) { Preconditions.checkNotNull(courtCriteria); Preconditions.checkNotNull(model); addCommonCourtsToModel(courtCriteria, model); addSupremeCourtChambersToModel(courtCriteria, model); }  void addCourtDataToModel(CourtCriteria courtCriteria, ModelMap model); @Autowired void setCcListService(CcListService ccListService); @Autowired void setScListService(ScListService scListService); }
CourtDataModelCreator { public void addCourtDataToModel(CourtCriteria courtCriteria, ModelMap model) { Preconditions.checkNotNull(courtCriteria); Preconditions.checkNotNull(model); addCommonCourtsToModel(courtCriteria, model); addSupremeCourtChambersToModel(courtCriteria, model); }  void addCourtDataToModel(CourtCriteria courtCriteria, ModelMap model); @Autowired void setCcListService(CcListService ccListService); @Autowired void setScListService(ScListService scListService);  }