@Test public void addTest() { InternalSearch internalSearch = internalSearches.add("search", 8); assertEquals(1, tracker.getBusinessObjects().size()); }
public InternalSearch add(String keywordLabel, int resultPageNumber) { InternalSearch search = new InternalSearch(tracker) .setKeyword(keywordLabel) .setResultScreenNumber(resultPageNumber); tracker.getBusinessObjects().put(search.getId(), search); return search; }
InternalSearches extends Helper { public InternalSearch add(String keywordLabel, int resultPageNumber) { InternalSearch search = new InternalSearch(tracker) .setKeyword(keywordLabel) .setResultScreenNumber(resultPageNumber); tracker.getBusinessObjects().put(search.getId(), search); return search; } }
InternalSearches extends Helper { public InternalSearch add(String keywordLabel, int resultPageNumber) { InternalSearch search = new InternalSearch(tracker) .setKeyword(keywordLabel) .setResultScreenNumber(resultPageNumber); tracker.getBusinessObjects().put(search.getId(), search); return search; } InternalSearches(Tracker tracker); }
InternalSearches extends Helper { public InternalSearch add(String keywordLabel, int resultPageNumber) { InternalSearch search = new InternalSearch(tracker) .setKeyword(keywordLabel) .setResultScreenNumber(resultPageNumber); tracker.getBusinessObjects().put(search.getId(), search); return search; } InternalSearches(Tracker tracker); InternalSearch add(String keywordLabel, int resultPageNumber); InternalSearch add(String keywordLabel, int resultPageNumber, int resultPosition); }
InternalSearches extends Helper { public InternalSearch add(String keywordLabel, int resultPageNumber) { InternalSearch search = new InternalSearch(tracker) .setKeyword(keywordLabel) .setResultScreenNumber(resultPageNumber); tracker.getBusinessObjects().put(search.getId(), search); return search; } InternalSearches(Tracker tracker); InternalSearch add(String keywordLabel, int resultPageNumber); InternalSearch add(String keywordLabel, int resultPageNumber, int resultPosition);  }