Package org.eurekastreams.server.domain

Examples of org.eurekastreams.server.domain.Person


    {
        final ExtendedUserDetails userMock = context.mock(ExtendedUserDetails.class);

        final String expectedUserName = "user";

        final Person expectedPerson = context.mock(Person.class);

        context.checking(new Expectations()
        {
            {
                // get user's account id
View Full Code Here


    public final void executeTest()
    {
        final Long personId = 2L;
        final Long scopeId = 3L;

        final Person person = context.mock(Person.class);

        final List<StreamScope> bookmarks = new ArrayList<StreamScope>();

        final StreamScope scopeToAdd = new StreamScope();
View Full Code Here

     * Test objectToString with valid input.
     */
    @Test
    public void testObjectToStringValid()
    {
        Person person = new Person("foobar", "Jim", "Bob", "Smith", "JimmyBob");
        assertEquals("Jim Bob Smith JimmyBob", sut.objectToString(person));
    }
View Full Code Here

     * Test objectToString with null middle name.
     */
    @Test
    public void testObjectToStringNullMiddleName()
    {
        Person person = new Person("foobar", "Jim", null, "Smith", "JimmyBob");
        assertEquals("Jim  Smith JimmyBob", sut.objectToString(person));
    }
View Full Code Here

     * Test objectToString when passed an invalid type.
     */
    @Test
    public void testObjectToStringWrongType()
    {
        assertNull(sut.objectToString(new Person()));
    }
View Full Code Here

    public final void testExecuteValid() throws Exception
    {
        final Long tabId = 100L;
        final Long gadgetDefinitionId = 9928L;
        final Layout tabLayout = Layout.THREECOLUMNLEFTWIDEHEADER;
        final Person person = context.mock(Person.class);

        final List<Tab> tabList = Collections.singletonList(tab);

        final List<Gadget> gadgets = new ArrayList<Gadget>();
View Full Code Here

     */
    public void performActionWithInvalidTabId() throws Exception
    {
        final Long tabId = new Long(1000000000);

        final Person person = context.mock(Person.class);

        final List<Tab> tabList = Collections.singletonList(tab);

        // Set up expectations
        context.checking(new Expectations()
View Full Code Here

     *             Shouldn't.
     */
    private void setupCommonExpectations() throws Exception
    {
        final Set<Person> coordinators = new HashSet<Person>();
        final Person coordinator1 = context.mock(Person.class, "coord1");
        final Person coordinator2 = context.mock(Person.class, "coord2");
        coordinators.add(coordinator1);
        coordinators.add(coordinator2);

        userModelView = new PersonModelView();
        userModelView.setEmail(userEmailAddress);
View Full Code Here

     */
    @Test
    public void testAuthorizeSuccess() throws Exception
    {
        final HashMap<String, Serializable> state = new HashMap<String, Serializable>();
        final Person person = context.mock(Person.class);
        final List<Stream> streams = new ArrayList<Stream>();
        final Stream stream1 = new Stream();
        stream1.setId(1L);
        streams.add(stream1);

View Full Code Here

     */
    @Test(expected = AuthorizationException.class)
    public void testAuthorizeFail() throws Exception
    {
        final HashMap<String, Serializable> state = new HashMap<String, Serializable>();
        final Person person = context.mock(Person.class);
        final List<Stream> streams = new ArrayList<Stream>();
        final Stream stream1 = new Stream();
        stream1.setId(2L);
        streams.add(stream1);

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.