Package org.apache.rave.opensocial.service.impl

Examples of org.apache.rave.opensocial.service.impl.FieldRestrictingPerson


        assertThat(p.getAddresses().get(1).getType(), is(equalTo(QUALIFIER)));
    }

    @Test
    public void getCurrentLocation_set() {
        Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.CURRENT_LOCATION));
        assertThat(p.getCurrentLocation().getStreetAddress(), is(equalTo(STREET)));
    }
View Full Code Here


        assertThat(p.getCurrentLocation().getStreetAddress(), is(equalTo(STREET)));
    }

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

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

    @Test(expected = NotSupportedException.class)
    public void setStatus() {
        new FieldRestrictingPerson(null, null).setStatus(SUFFIX);
    }
View Full Code Here

        new FieldRestrictingPerson(null, null).setStatus(SUFFIX);
    }

    @Test(expected = NotSupportedException.class)
    public void setRelationshipStatus() {
        new FieldRestrictingPerson(null, null).setRelationshipStatus(SUFFIX);
    }
View Full Code Here

        new FieldRestrictingPerson(null, null).setRelationshipStatus(SUFFIX);
    }

    @Test(expected = NotSupportedException.class)
    public void setQuotes() {
        new FieldRestrictingPerson(null, null).setQuotes(new ArrayList<String>());
    }
View Full Code Here

        new FieldRestrictingPerson(null, null).setQuotes(new ArrayList<String>());
    }

    @Test(expected = NotSupportedException.class)
    public void setProfileVideo() {
        new FieldRestrictingPerson(null, null).setProfileVideo(new UrlImpl());
    }
View Full Code Here

        new FieldRestrictingPerson(null, null).setProfileVideo(new UrlImpl());
    }

    @Test(expected = NotSupportedException.class)
    public void setProfileSong() {
        new FieldRestrictingPerson(null, null).setProfileSong(new UrlImpl());
    }
View Full Code Here

        new FieldRestrictingPerson(null, null).setProfileSong(new UrlImpl());
    }

    @Test(expected = NotSupportedException.class)
    public void setPoliticalViews() {
        new FieldRestrictingPerson(null, null).setPoliticalViews(SUFFIX);
    }
View Full Code Here

        new FieldRestrictingPerson(null, null).setPoliticalViews(SUFFIX);
    }

    @Test(expected = NotSupportedException.class)
    public void setPhotos() {
        new FieldRestrictingPerson(null, null).setPhotos(new ArrayList<ListField>());
    }
View Full Code Here

        new FieldRestrictingPerson(null, null).setPhotos(new ArrayList<ListField>());
    }

    @Test(expected = NotSupportedException.class)
    public void setPhoneNumbers() {
        new FieldRestrictingPerson(null, null).setPhoneNumbers(new ArrayList<ListField>());
    }
View Full Code Here

TOP

Related Classes of org.apache.rave.opensocial.service.impl.FieldRestrictingPerson

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.