Examples of TargetEntityNotificationsRequest


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

        List<UserActionRequest> uaRequests = callExecute();
        assertEquals(1, uaRequests.size());

        UserActionRequest uaRequest = uaRequests.get(0);
        assertEquals("createNotificationsAction", uaRequest.getActionKey());
        TargetEntityNotificationsRequest request = (TargetEntityNotificationsRequest) uaRequest.getParams();
        assertEquals(RequestType.REQUEST_GROUP_ACCESS, request.getType());
        assertEquals(USER_ID, request.getActorId());
        assertEquals(GROUP_ID, request.getTargetEntityId());
    }
View Full Code Here

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

        context.assertIsSatisfied();

        assertEquals(1, asyncRequests.size());
        assertEquals("createNotificationsAction", asyncRequests.get(0).getActionKey());
        TargetEntityNotificationsRequest expected = new TargetEntityNotificationsRequest(
                RequestType.REQUEST_NEW_GROUP_APPROVED, 0L, GROUP_ID);
        assertTrue(IsEqualInternally.areEqualInternally(expected, asyncRequests.get(0).getParams()));
    }
View Full Code Here

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

        context.assertIsSatisfied();

        assertEquals(1, asyncRequests.size());
        assertEquals("createNotificationsAction", asyncRequests.get(0).getActionKey());
        TargetEntityNotificationsRequest expected = new TargetEntityNotificationsRequest(
                RequestType.REQUEST_NEW_GROUP_APPROVED, 0L, GROUP_ID);
        assertTrue(IsEqualInternally.areEqualInternally(expected, asyncRequests.get(0).getParams()));
    }
View Full Code Here

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

                allowing(idToUniqueIdDAO).execute(ACTOR_ID);
                will(returnValue("somebody"));
            }
        });

        NotificationBatch results = sut.translate(new TargetEntityNotificationsRequest(null, ACTOR_ID,
                GROUP_FOLLOWED_ID));

        context.assertIsSatisfied();

        // check recipients
View Full Code Here

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

                oneOf(coordinatorDAO).execute(GROUP_FOLLOWED_ID);
                will(returnValue(coordinators));
            }
        });

        NotificationBatch results = sut.translate(new TargetEntityNotificationsRequest(null, ACTOR_ID,
                GROUP_FOLLOWED_ID));

        context.assertIsSatisfied();
        assertNull(results);
    }
View Full Code Here

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

        });

        NotificationTranslator<TargetEntityNotificationsRequest> sut = new RequestNewGroupTranslator(groupMapper,
                systemAdminIdsMapper);

        NotificationBatch results = sut.translate(new TargetEntityNotificationsRequest(null, actorId, groupId));

        context.assertIsSatisfied();

        // check recipients
        assertEquals(1, results.getRecipients().size());
View Full Code Here

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

                allowing(group).getUniqueId();
                will(returnValue("somegroup"));
            }
        });

        NotificationBatch results = sut.translate(new TargetEntityNotificationsRequest(
                RequestType.REQUEST_NEW_GROUP_APPROVED, 0L, groupId));

        context.assertIsSatisfied();

        // check recipients
View Full Code Here

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

                allowing(idToUniqueIdDAO).execute(GROUP_ID);
                will(returnValue("somegroup"));
            }
        });

        NotificationBatch results = sut.translate(new TargetEntityNotificationsRequest(null, ACTOR_ID, GROUP_ID));

        context.assertIsSatisfied();

        // check recipients
        assertEquals(1, results.getRecipients().size());
View Full Code Here

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

                allowing(idToUniqueIdDAO).execute(ACTOR_ID);
                will(returnValue("somebody"));
            }
        });

        NotificationBatch results = sut.translate(new TargetEntityNotificationsRequest(null, ACTOR_ID, FOLLOWED_ID));

        // check recipients
        assertEquals(1, results.getRecipients().size());
        TranslatorTestHelper.assertRecipients(results, NotificationType.FOLLOW_PERSON, FOLLOWED_ID);
View Full Code Here

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

        assertEquals(2, userActionRequests.size());

        assertEquals("Second request has wrong key", "createNotificationsAction", userActionRequests.get(1)
                .getActionKey());
        CreateNotificationsRequest request2 = new TargetEntityNotificationsRequest(RequestType.REQUEST_NEW_GROUP,
                personId, id);
        assertTrue("Second request has wrong content", IsEqualInternally.areEqualInternally(request2,
                userActionRequests.get(1).getParams()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.