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

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


                allowing(activity).getOriginalActor();
                will(returnValue(null));
            }
        });

        NotificationBatch results = sut.translate(new ActivityNotificationsRequest(null, 1L, 0L, ACTIVITY_ID));

        context.assertIsSatisfied();

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


                allowing(activity).getOriginalActor();
                will(returnValue(null));
            }
        });

        NotificationBatch results = sut.translate(new ActivityNotificationsRequest(null, AUTHOR_ID, 0L, ACTIVITY_ID));

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

                allowing(activity).getOriginalActor();
                will(returnValue(null));
            }
        });

        NotificationBatch results = sut.translate(new ActivityNotificationsRequest(null, 1L, 0L, ACTIVITY_ID));

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

                allowing(originalAuthor).getType();
                will(returnValue(EntityType.PERSON));
            }
        });

        NotificationBatch results = sut.translate(new ActivityNotificationsRequest(null, 1L, 0L, ACTIVITY_ID));

        context.assertIsSatisfied();

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

                allowing(systemAdminIdsMapper).execute(null);
                will(returnValue(new ArrayList<Long>(ADMIN_IDS)));
            }
        });

        NotificationBatch results = sut.translate(new ActivityNotificationsRequest(null, ACTOR_ID, 0L, 3L));

        context.assertIsSatisfied();

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

                allowing(systemAdminIdsMapper).execute(null);
                will(returnValue(new ArrayList<Long>(ADMIN_IDS)));
            }
        });

        NotificationBatch results = sut.translate(new ActivityNotificationsRequest(null, ACTOR_ID, 0L, 3L));

        context.assertIsSatisfied();

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

                oneOf(subscribersUnrestrictedDAO).execute(GROUP_ID);
                will(returnValue(subscribers));
            }
        });

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

        context.assertIsSatisfied();

        // check recipients
View Full Code Here

                oneOf(subscribersAllDAO).execute(GROUP_ID);
                will(returnValue(subscribers));
            }
        });

        NotificationBatch results = sut.translate(new ActivityNotificationsRequest(null, COORDINATOR2_ID, GROUP_ID,
                ACTIVITY_ID));

        context.assertIsSatisfied();

        // check recipients
View Full Code Here

                oneOf(subscribersUnrestrictedDAO).execute(GROUP_ID);
                will(returnValue(Collections.EMPTY_LIST));
            }
        });

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

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

                allowing(followersDAO).execute(STREAM_OWNER_ID);
                will(returnValue(new ArrayList<Long>(Arrays.asList(ACTOR_ID, STREAM_OWNER_ID, 5L, 6L, 7L))));
            }
        });

        NotificationBatch results = sut.translate(new ActivityNotificationsRequest(null, ACTOR_ID, STREAM_OWNER_ID,
                ACTIVITY_ID));

        // check recipients
        assertEquals(2, results.getRecipients().size());
        TranslatorTestHelper.assertRecipients(results, NotificationType.POST_TO_PERSONAL_STREAM, STREAM_OWNER_ID);
View Full Code Here

TOP

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

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.