8485868788899091929394
*/ @Before public void setUp() { sut = new GetRequestsForGroupMembershipByGroupExecution(requestMapper, peopleMapper); request = new GetRequestForGroupMembershipRequest(GROUP_ID, null, START_INDEX, END_INDEX); context.checking(new Expectations() { { allowing(actionCtx).getParams();
99100101102103104105106
* Initialize. */ public void init() { GroupMembershipRequestModel.getInstance().fetch( new GetRequestForGroupMembershipRequest(groupId, groupShortName, pager.getStartItem(), pager .getEndItem()), false); }
134135136137138139140141
*/ public void next() { pager.nextPage(); GroupMembershipRequestModel.getInstance().fetch( new GetRequestForGroupMembershipRequest(groupId, groupShortName, pager.getStartItem(), pager .getEndItem()), false); }
145146147148149150151152
*/ public void prev() { pager.previousPage(); GroupMembershipRequestModel.getInstance().fetch( new GetRequestForGroupMembershipRequest(groupId, groupShortName, pager.getStartItem(), pager .getEndItem()), false); }
3940414243444546474849
ActionContext ctx = new ActionContext() { public Serializable getParams() { // a sample request that implements HasGroupId return new GetRequestForGroupMembershipRequest(8L, null, 0, 0); } public Map<String, Object> getState() { return null;
5859606162636465666768
* {@inheritDoc} */ @Override public Serializable execute(final ActionContext inActionContext) throws ExecutionException { GetRequestForGroupMembershipRequest request = (GetRequestForGroupMembershipRequest) inActionContext.getParams(); PagedSet<Long> idsPagedSet = requestMapper.execute(request); List<PersonModelView> list; if (idsPagedSet.getPagedSet().isEmpty()) {
4445464748495051525354
final long groupId = 8L; final int startIndex = 0; final int endIndex = 9; final long personId = 4507L; GetRequestForGroupMembershipRequest request = new GetRequestForGroupMembershipRequest(groupId, null, startIndex, endIndex); // perform SUT PagedSet<Long> results = sut.execute(request);
6869707172737475767778
{ final long groupId = 7L; final int startIndex = 0; final int endIndex = 9; GetRequestForGroupMembershipRequest request = new GetRequestForGroupMembershipRequest(groupId, null, startIndex, endIndex); // perform SUT PagedSet<Long> results = sut.execute(request);