@Test public void addTest() { locations.add(1, 1); assertEquals(1, tracker.getBusinessObjects().size()); }
public Location add(double latitude, double longitude) { Location loc = new Location(tracker) .setLatitude(latitude) .setLongitude(longitude); tracker.getBusinessObjects().put(loc.getId(), loc); return loc; }
Locations extends Helper { public Location add(double latitude, double longitude) { Location loc = new Location(tracker) .setLatitude(latitude) .setLongitude(longitude); tracker.getBusinessObjects().put(loc.getId(), loc); return loc; } }
Locations extends Helper { public Location add(double latitude, double longitude) { Location loc = new Location(tracker) .setLatitude(latitude) .setLongitude(longitude); tracker.getBusinessObjects().put(loc.getId(), loc); return loc; } Locations(Tracker tracker); }
Locations extends Helper { public Location add(double latitude, double longitude) { Location loc = new Location(tracker) .setLatitude(latitude) .setLongitude(longitude); tracker.getBusinessObjects().put(loc.getId(), loc); return loc; } Locations(Tracker tracker); Location add(double latitude, double longitude); }
Locations extends Helper { public Location add(double latitude, double longitude) { Location loc = new Location(tracker) .setLatitude(latitude) .setLongitude(longitude); tracker.getBusinessObjects().put(loc.getId(), loc); return loc; } Locations(Tracker tracker); Location add(double latitude, double longitude);  }