Package org.apache.shindig.social.opensocial.model

Examples of org.apache.shindig.social.opensocial.model.Person


        assertThat(p.getNetworkPresence(), is(nullValue()));
    }

    @Test
    public void getNickname_set() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.NICKNAME));
        assertThat(p.getNickname(), is(equalTo(PREFERRED_NAME)));
    }
View Full Code Here


        assertThat(p.getNickname(), is(equalTo(PREFERRED_NAME)));
    }

    @Test
    public void getPets_set() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PETS));
        assertThat(p.getPets(), is(nullValue()));
    }
View Full Code Here

        assertThat(p.getPets(), is(nullValue()));
    }

    @Test
    public void getPhoneNumbers_set() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PHONE_NUMBERS));
        assertThat(p.getPhoneNumbers().isEmpty(), is(true));
    }
View Full Code Here

        assertThat(p.getPhoneNumbers().isEmpty(), is(true));
    }

    @Test
    public void getPhotos_set() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PHOTOS));
        assertThat(p.getPhotos().isEmpty(), is(true));
    }
View Full Code Here

        assertThat(p.getPhotos().isEmpty(), is(true));
    }

    @Test
    public void getPoliticalViews_set() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.POLITICAL_VIEWS));
        assertThat(p.getPoliticalViews(), is(nullValue()));
    }
View Full Code Here

        assertThat(p.getPoliticalViews(), is(nullValue()));
    }

    @Test
    public void getProfileSong_set() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PROFILE_SONG));
        assertThat(p.getProfileSong().getValue(), is(equalTo(LINK_VALUE)));
        assertThat(p.getProfileSong().getLinkText(), is(equalTo(LINK_TEXT)));
    }
View Full Code Here

        assertThat(p.getProfileSong().getLinkText(), is(equalTo(LINK_TEXT)));
    }

    @Test
    public void getProfileSong_notset() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.BOOKS));
        assertThat(p.getProfileSong(), is(nullValue()));
    }
View Full Code Here

        assertThat(p.getProfileSong(), is(nullValue()));
    }

    @Test
    public void getProfileVideo_set() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PROFILE_VIDEO));
        assertThat(p.getProfileVideo(), is(nullValue()));
    }
View Full Code Here

        assertThat(p.getProfileVideo(), is(nullValue()));
    }

    @Test
    public void getQuotes_set() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.QUOTES));
        assertThat(p.getQuotes().isEmpty(), is(true));
    }
View Full Code Here

        assertThat(p.getQuotes().isEmpty(), is(true));
    }

    @Test
    public void getRelationshipStatus_set() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.RELATIONSHIP_STATUS));
        assertThat(p.getRelationshipStatus(), is(nullValue()));
    }
View Full Code Here

TOP

Related Classes of org.apache.shindig.social.opensocial.model.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.