@Test public void testGetFollowedActivityIdsWithPersonGroupActivities() { List<Long> results = sut.getFollowedActivityIds(USER_ID, 9); assertEquals(2, results.size()); assertTrue(results.get(0) > results.get(1)); }
public List<Long> getFollowedActivityIds(final long inPersonId, final int inMaxResults) { List<Long> results = new ArrayList<Long>(); results.addAll(getPersonActivityIdsFollowed(inPersonId, inMaxResults)); if (results.size() > inMaxResults) { results = results.subList(0, inMaxResults); } return results; }
FollowedActivityIdsLoaderImpl extends BaseDomainMapper implements FollowedActivityIdsLoader { public List<Long> getFollowedActivityIds(final long inPersonId, final int inMaxResults) { List<Long> results = new ArrayList<Long>(); results.addAll(getPersonActivityIdsFollowed(inPersonId, inMaxResults)); if (results.size() > inMaxResults) { results = results.subList(0, inMaxResults); } return results; } }
FollowedActivityIdsLoaderImpl extends BaseDomainMapper implements FollowedActivityIdsLoader { public List<Long> getFollowedActivityIds(final long inPersonId, final int inMaxResults) { List<Long> results = new ArrayList<Long>(); results.addAll(getPersonActivityIdsFollowed(inPersonId, inMaxResults)); if (results.size() > inMaxResults) { results = results.subList(0, inMaxResults); } return results; }  }
FollowedActivityIdsLoaderImpl extends BaseDomainMapper implements FollowedActivityIdsLoader { public List<Long> getFollowedActivityIds(final long inPersonId, final int inMaxResults) { List<Long> results = new ArrayList<Long>(); results.addAll(getPersonActivityIdsFollowed(inPersonId, inMaxResults)); if (results.size() > inMaxResults) { results = results.subList(0, inMaxResults); } return results; }  List<Long> getFollowedActivityIds(final long inPersonId, final int inMaxResults); }
FollowedActivityIdsLoaderImpl extends BaseDomainMapper implements FollowedActivityIdsLoader { public List<Long> getFollowedActivityIds(final long inPersonId, final int inMaxResults) { List<Long> results = new ArrayList<Long>(); results.addAll(getPersonActivityIdsFollowed(inPersonId, inMaxResults)); if (results.size() > inMaxResults) { results = results.subList(0, inMaxResults); } return results; }  List<Long> getFollowedActivityIds(final long inPersonId, final int inMaxResults);  }