Package org.eurekastreams.server.domain

Examples of org.eurekastreams.server.domain.Person


        // for now, manually update until the back end is ready
        // this simulates a successful callback
        ArrayList<Person> list = new ArrayList<Person>();
        for (int i = 0; i < 8; i++)
        {
            Person p = new Person("secon" + i, "Stephen", "X", "Economopolus", "Steve");
            p.setTitle("Chief Strategist");
            list.add(p);
        }
        final PagedSet<Person> connections = new PagedSet<Person>(0, 7, 8, list);

        context.checking(new Expectations()
View Full Code Here


        // for now, manually update until the back end is ready
        // this simulates a successful callback.
        ArrayList<Person> list = new ArrayList<Person>();
        for (int i = 0; i < 8; i++)
        {
            Person p = new Person("secon" + i, "Stephen", "X", "Economopolus", "Steve");
            p.setTitle("Chief Strategist");
            list.add(p);
        }
        final PagedSet<Person> connections = new PagedSet<Person>(0, 7, 8, list);

        context.checking(new Expectations()
View Full Code Here

        // for now, manually update until the back end is ready
        // this simulates a successful callback.
        ArrayList<Person> list = new ArrayList<Person>();
        for (int i = 0; i < 8; i++)
        {
            Person p = new Person("secon" + i, "Stephen", "X", "Economopolus", "Steve");
            p.setTitle("Chief Strategist");
            list.add(p);
        }
        final PagedSet<Person> connections = new PagedSet<Person>(0, 7, 8, list);

        context.checking(new Expectations()
View Full Code Here

    @Test
    public void testPerformAction()
    {
        final String userAccountId = "lskdfj";
        final String avatarId = "someAvatarId";
        final Person p = new Person();
        p.setAvatarId(avatarId);

        final List<Long> activityIds = new ArrayList<Long>();
        activityIds.add(1L);

        final List<Long> commentIds = new ArrayList<Long>();
View Full Code Here

                allowing(g).getGadgetDefinition();
                will(returnValue(new GadgetDefinition()));

                allowing(g).getOwner();
                will(returnValue(new Person()));
            }
        });
        return g;
    }
View Full Code Here

        metaDataList.add(new GadgetMetaDataDTO(null));

        FeedSubscriber sub1 = new FeedSubscriber();
        sub1.setEntityId(1L);
        sub1.setEntityType(EntityType.PERSON);
        sub1.setRequestor(new Person("user1", "", "", "", ""));
        FeedSubscriber sub2 = new FeedSubscriber();
        sub2.setEntityId(2L);
        sub2.setEntityType(EntityType.GROUP);
        sub2.setRequestor(new Person("user2", "", "", "", ""));
        final List<FeedSubscriber> feedSubs = new ArrayList<FeedSubscriber>();
        feedSubs.add(sub1);
        feedSubs.add(sub2);

        specificUrlMappers.add(youTubeMapper);
View Full Code Here

        testDataValues.put("firstpet", "snake");
        AppData testInputAppData = new AppData();
        testInputAppData.setValues(testDataValues);
        testInputAppData.setGadgetDefinition(new GadgetDefinition(testGadgetDefinitionUrl,
                UUID.randomUUID().toString(), new GalleryItemCategory("somecategory")));
        testInputAppData.setPerson(new Person("acole", "Augustus", "jay", "Cole", "Cole Train"));

        return testInputAppData;
    }
View Full Code Here

        final String overview = "Entity overview";

        final Set<Person> coordinators = new HashSet<Person>();

        final Person person1 = context.mock(Person.class, "person1");
        final Person person2 = context.mock(Person.class, "person2");

        coordinators.add(person1);
        coordinators.add(person2);

        context.checking(new Expectations()
View Full Code Here

    private List<Gadget> makeGadgets()
    {
        List<Gadget> gadgetList = new ArrayList<Gadget>();
        String url = "http://www.example.com/gadgets";
        gadgetList.add(new Gadget(new GadgetDefinition(url, UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 0, 0, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition(url, UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 0, 1, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition(url, UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 0, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition(url, UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 1, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition(url, UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 1, 2, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition(url, UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 2, 0, new Person(), ""));
        gadgetList.add(new Gadget(new GadgetDefinition(url, UUID.randomUUID().toString(),
                 new GalleryItemCategory("somecategory")), 2, 1, new Person(), ""));

        return gadgetList;
    }
View Full Code Here

                oneOf(ldapPersonMapper).findPeople(userAcctId, 1);
                will(returnValue(null));
            }
        });

        Person result = sut.execute(taskHandlerActionContextMock);
        assertNull(result);
        context.assertIsSatisfied();
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.domain.Person

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.