Package org.eurekastreams.server.persistence.mappers.requests

Examples of org.eurekastreams.server.persistence.mappers.requests.DeleteActivityRequest


        // get people who have this activity starred before removal from DB.
        List<Long> personIdsWithActivityStarred = getPersonIdsWithStarredActivityDAO.execute(activityId);

        // delete activity/comments/stars from DB and update current user's views.
        ActivityDTO activity = deleteActivityDAO.execute(new DeleteActivityRequest(currentUserId, activityId));

        // action has already been deleted or was never present, short-circuit here.
        if (activity == null)
        {
            return Boolean.TRUE;
View Full Code Here


     */
    @Test
    public void testExecuteBogusId()
    {
        final long bogusId = -9879843;
        assertNull(sut.execute(new DeleteActivityRequest(smithersId, bogusId)));
    }
View Full Code Here

    {
        // verify initial state.
        loadAndVerifyInitialActivity();

        // delete a activity via sut.
        assertNotNull(sut.execute(new DeleteActivityRequest(smithersId, activityId)));

        // verify delete activity comments from DB.
        assertEquals(0, getEntityManager().createQuery("FROM Comment c WHERE c.id = :commentId").setParameter(
                "commentId", commentId).getResultList().size());
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.persistence.mappers.requests.DeleteActivityRequest

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.