Package org.eurekastreams.server.action.request.notification

Examples of org.eurekastreams.server.action.request.notification.GroupRemovedNotificationsRequest


        context.assertIsSatisfied();

        assertEquals(1, asyncRequests.size());
        assertEquals("createNotificationsAction", asyncRequests.get(0).getActionKey());

        GroupRemovedNotificationsRequest params = (GroupRemovedNotificationsRequest) asyncRequests.get(0).getParams();
        assertEquals(RequestType.REQUEST_NEW_GROUP_DENIED, params.getType());
        assertEquals(GROUP_NAME, params.getGroupName());
        assertTrue("Expected recipient list", TestHelper.containsExactly(params.getCoordinatorIds(), 7L, 8L));
    }
View Full Code Here


    {
        final String groupName = "Group Name";
        final Collection<Long> coordinators = Arrays.asList(1L, 3L);

        NotificationTranslator<GroupRemovedNotificationsRequest> sut = new PendingGroupDeniedTranslator();
        GroupRemovedNotificationsRequest request = new GroupRemovedNotificationsRequest(
                RequestType.REQUEST_NEW_GROUP_DENIED, 0, groupName, coordinators);

        NotificationBatch results = sut.translate(request);

        // check recipients
View Full Code Here

            List<Long> recipients = new ArrayList<Long>();
            for (Person coord : group.getCoordinators())
            {
                recipients.add(coord.getId());
            }
            notifRequest = new GroupRemovedNotificationsRequest(RequestType.REQUEST_NEW_GROUP_DENIED, 0L,
                    group.getName(), recipients);
        }
        inActionContext.getUserActionRequests().add(
                new UserActionRequest(CreateNotificationsRequest.ACTION_NAME, null, notifRequest));
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.action.request.notification.GroupRemovedNotificationsRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.