Package fr.ippon.tatami.service.dto

Examples of fr.ippon.tatami.service.dto.StatusDTO


        groupStatuses = timelineService.getGroupline(group.getGroupId(), 10, null, null);
        assertEquals(10, groupStatuses.size());
        Iterator<StatusDTO> iterator = groupStatuses.iterator();
        for (int i = 11; i >= 2; i--) {
            StatusDTO temporaryStatus = iterator.next();
            assertEquals("temporary status " + i, temporaryStatus.getContent());
            timelineService.removeStatus(temporaryStatus.getStatusId());
        }

        groupStatuses = timelineService.getGroupline(group.getGroupId(), 10, null, null);
        assertEquals(2, groupStatuses.size());
View Full Code Here


        favoriteStatuses = timelineService.getFavoritesline();
        assertEquals(0, favoriteStatuses.size());

        Iterator<StatusDTO> iterator = timelineStatuses.iterator();
        for (int i = 9; i >= 0; i--) {
            StatusDTO temporaryStatus = iterator.next();
            timelineService.addFavoriteStatus(temporaryStatus.getStatusId());
        }
        favoriteStatuses = timelineService.getFavoritesline();
        assertEquals(10, favoriteStatuses.size());

        iterator = timelineStatuses.iterator();
        for (int i = 9; i >= 0; i--) {
            StatusDTO temporaryStatus = iterator.next();
            assertEquals("temporary status " + i + " #ippon", temporaryStatus.getContent());
            timelineService.removeStatus(temporaryStatus.getStatusId());
        }

        timelineStatuses = timelineService.getTimeline(10, null, null);
        assertEquals(2, timelineStatuses.size());
        favoriteStatuses = timelineService.getFavoritesline();
View Full Code Here

        assertEquals(10, mentionStatuses.size());

        mockAuthenticationOnTimelineServiceWithACurrentUser(userWhoMentions);
        Iterator<StatusDTO> iterator = timelineStatuses.iterator();
        for (int i = 9; i >= 0; i--) {
            StatusDTO temporaryStatus = iterator.next();
            assertEquals("Hello @uuser " + i, temporaryStatus.getContent());
            timelineService.removeStatus(temporaryStatus.getStatusId());
        }

        timelineStatuses = timelineService.getTimeline(10, null, null);
        assertEquals(2, timelineStatuses.size());
View Full Code Here

TOP

Related Classes of fr.ippon.tatami.service.dto.StatusDTO

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.