Examples of GroupId


Examples of org.apache.shindig.social.opensocial.spi.GroupId

    }

    @Test
    public void getPeople_groupHasAppFilterField() throws ExecutionException, InterruptedException {
        Set<UserId> ids = getUserIdSet();
        GroupId groupId = new GroupId(GroupId.Type.objectId, GROUP_ID);
        String appId = "5";
        expect(token.getAppId()).andReturn(appId).anyTimes();
        replay(token);

        CollectionOptions options = new CollectionOptions();
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.GroupId

    }

    @Test
    public void getPeople_friendIsFriendsWith() throws ExecutionException, InterruptedException {
        Set<UserId> ids = getUserIdSet();
        GroupId groupId = new GroupId(GroupId.Type.friends, GROUP_ID);
        String appId = "5";
        expect(token.getAppId()).andReturn(appId);
        replay(token);

        CollectionOptions options = new CollectionOptions();
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.GroupId

    }

    @Test
    public void getPeople_allIsFriendsWith() throws ExecutionException, InterruptedException {
        Set<UserId> ids = getUserIdSet();
        GroupId groupId = new GroupId(GroupId.Type.all, GROUP_ID);
        String appId = "5";
        expect(token.getAppId()).andReturn(appId);
        replay(token);

        CollectionOptions options = new CollectionOptions();
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.GroupId

    }

    @Test
    public void getPeople_groupIsFriendsWith() throws ExecutionException, InterruptedException {
        Set<UserId> ids = getUserIdSet();
        GroupId groupId = new GroupId(GroupId.Type.objectId, GROUP_ID);
        String appId = "5";
        expect(token.getAppId()).andReturn(appId).anyTimes();
        replay(token);

        CollectionOptions options = new CollectionOptions();
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.GroupId

    @Test
    public void createActivityEntryTest() throws ExecutionException, InterruptedException {

        UserId id = new UserId(UserId.Type.userId, ID_1);
        GroupId groupId = new GroupId(GroupId.Type.self, GROUP_ID);
        Set<String> fields = new HashSet<String>();

        expect(token.getViewerId()).andReturn(ID_1);
        expect(repository.save(EasyMock.isA(ActivityStreamsEntryImpl.class))).andReturn(activityStreamsEntry);
        replay(repository);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.GroupId

        UserId id2 = new UserId(UserId.Type.userId, ID_2);
        Set<UserId> users = new HashSet<UserId>();
        users.add(id);
        users.add(id2);

        GroupId groupId = new GroupId(GroupId.Type.self, GROUP_ID);
        Set<String> fields = new HashSet<String>();

        expect(repository.save(activityStreamsEntry)).andReturn(activityStreamsEntry);
        expect(repository.getByUserId(ID_1)).andReturn((List) getActivityList());
        expect(personService.getPeople(users,groupId,null,fields,token)).andReturn(ImmediateFuture.newInstance(new RestfulCollection<Person>(getDbPersonList())));
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.GroupId

        UserId id = new UserId(UserId.Type.userId, ID_1);
        UserId id2 = new UserId(UserId.Type.userId, ID_2);
        HashSet<UserId> users = new HashSet<UserId>();
        users.add(id);
        users.add(id2);
        GroupId groupId = new GroupId(GroupId.Type.self, GROUP_ID);
        Set<String> fields = new HashSet<String>();

        expect(repository.save(EasyMock.isA(ActivityStreamsEntryImpl.class))).andReturn(activityStreamsEntry);
        expect(repository.get(ACTIVITY_ID)).andReturn(activityStreamsEntry);
        expect(personService.getPeople(users,groupId,null,fields,token)).andReturn(ImmediateFuture.newInstance(new RestfulCollection<Person>(getDbPersonList())));
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.GroupId

    @Test
    public void getActivityEntryWithIdTest() throws ExecutionException, InterruptedException {
        UserId id = new UserId(UserId.Type.userId, ID_1);

        GroupId groupId = new GroupId(GroupId.Type.self, GROUP_ID);
        Set<String> fields = new HashSet<String>();


        expect(repository.save(EasyMock.isA(ActivityStreamsEntryImpl.class))).andReturn(activityStreamsEntry);
        expect(repository.get(EasyMock.eq(ACTIVITY_ID))).andReturn(activityStreamsEntry);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.GroupId

    @Test
    public void deleteActivityEntryWithIdTest() throws ExecutionException, InterruptedException {
        UserId id = new UserId(UserId.Type.userId, ID_1);

        GroupId groupId = new GroupId(GroupId.Type.self, GROUP_ID);
        Set<String> fields = new HashSet<String>();


        expect(repository.save(activityStreamsEntry)).andReturn(activityStreamsEntry);
        expect(repository.get(ACTIVITY_ID)).andReturn(activityStreamsEntry);
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.GroupId

        String self = ID_1;
        expect(token.getViewerId()).andReturn(self);
        replay(token);

        Set<UserId> ids = getUserIdSet();
        GroupId groupId = new GroupId(GroupId.Type.self, GROUP_ID);

        expect(repository.get(Long.parseLong(self))).andReturn(getDbPerson());
        replay(repository);

        Future<RestfulCollection<Person>> people = service.getPeople(ids, groupId, null, null, token);
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.