@Test public void addTest() { selfPromotions.add(2); assertEquals(1, tracker.getBusinessObjects().size()); }
public SelfPromotion add(int adId) { SelfPromotion self = new SelfPromotion(tracker).setAdId(adId); tracker.getBusinessObjects().put(self.getId(), self); return self; }
SelfPromotions extends Helper { public SelfPromotion add(int adId) { SelfPromotion self = new SelfPromotion(tracker).setAdId(adId); tracker.getBusinessObjects().put(self.getId(), self); return self; } }
SelfPromotions extends Helper { public SelfPromotion add(int adId) { SelfPromotion self = new SelfPromotion(tracker).setAdId(adId); tracker.getBusinessObjects().put(self.getId(), self); return self; } SelfPromotions(Tracker tracker); }
SelfPromotions extends Helper { public SelfPromotion add(int adId) { SelfPromotion self = new SelfPromotion(tracker).setAdId(adId); tracker.getBusinessObjects().put(self.getId(), self); return self; } SelfPromotions(Tracker tracker); SelfPromotion add(int adId); void sendImpressions(); }
SelfPromotions extends Helper { public SelfPromotion add(int adId) { SelfPromotion self = new SelfPromotion(tracker).setAdId(adId); tracker.getBusinessObjects().put(self.getId(), self); return self; } SelfPromotions(Tracker tracker); SelfPromotion add(int adId); void sendImpressions();  }