public void setHappiestWhen() {
new FieldRestrictingPerson(null, null).setHappiestWhen(SUFFIX);
}
private org.apache.rave.model.Person getTestPerson() {
org.apache.rave.model.Person person = new PersonImpl();
person.setUsername(USERNAME);
person.setAboutMe(ABOUT_ME);
person.setAdditionalName(ADDITIONAL_NAME);
person.setDisplayName(DISPLAY_NAME);
person.setEmail(E_MAIL_ADDRESS);
person.setFamilyName(FIRST_NAME);
person.setGivenName(GIVEN_NAME);
person.setHonorificPrefix(PREFIX);
person.setHonorificSuffix(SUFFIX);
person.setPreferredName(PREFERRED_NAME);
person.setStatus(STATUS);
List<PersonProperty> properties = new ArrayList<PersonProperty>();
properties.add(new PersonPropertyImpl("1", "gender", Person.Gender.female.toString(), null, "", false));
properties.add(new PersonPropertyImpl("1", "drinker", Drinker.HEAVILY.toString(), null, "", false));
properties.add(new PersonPropertyImpl("1", "age", AGE.toString(), null, "", false));
properties.add(new PersonPropertyImpl("1", "birthday", BIRTHDAY_STRING, null, "", false));
properties.add(new PersonPropertyImpl("1", "bodyType", BODY_BUILD, null, "build", false));
properties.add(new PersonPropertyImpl("1", "bodyType", BODY_EYE_COLOR, null, "eyeColor", false));
properties.add(new PersonPropertyImpl("1", "bodyType", "25.24", null, "height", false));
properties.add(new PersonPropertyImpl("1", "ims", IM_1, null, IM_PROVIDER_1, true));
properties.add(new PersonPropertyImpl("1", "ims", IM_2, null, IM_PROVIDER_2, false));
properties.add(new PersonPropertyImpl("1", "emails", E_MAIL_ADDRESS_2, null, "personal", false));
properties.add(new PersonPropertyImpl("1", "emails", E_MAIL_ADDRESS_3, null, "junk", true));
properties.add(new PersonPropertyImpl("1", "activities", ACTIVITY_1, null, "", false));
properties.add(new PersonPropertyImpl("1", "activities", ACTIVITY_2, null, "", false));
properties.add(new PersonPropertyImpl("1", "profileSong", LINK_VALUE, LINK_TEXT, null, false));
properties.add(new PersonPropertyImpl("1", "lookingFor", LookingFor.FRIENDS.toString(), null, null, false));
properties.add(new PersonPropertyImpl("1", "currentLocation", QUALIFIER, null, null, null));
properties.add(new PersonPropertyImpl("1", "account", IM_1, "1", IM_PROVIDER_1, false));
person.setProperties(properties);
org.apache.rave.model.Address address = new AddressImpl();
address.setCountry(COUNTRY);
address.setLatitude(LATITUDE);
address.setLongitude(LONGITUDE);
address.setLocality(CITY);
address.setRegion(STATE);
address.setPostalCode(POSTAL_CODE);
address.setStreetAddress(STREET);
address.setQualifier(QUALIFIER);
List<org.apache.rave.model.Address> addresses = new ArrayList<org.apache.rave.model.Address>();
addresses.add(new AddressImpl());
addresses.add(address);
person.setAddresses(addresses);
return person;
}