Skip to content

Commit

Permalink
Issue #1112 - deprecated fields and methods removed from User type
Browse files Browse the repository at this point in the history
  • Loading branch information
nbartels committed Feb 5, 2021
1 parent bd8e680 commit ff6bd94
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 778 deletions.
433 changes: 0 additions & 433 deletions src/main/lombok/com/restfb/types/User.java

Large diffs are not rendered by default.

122 changes: 0 additions & 122 deletions src/main/lombok/com/restfb/types/WorkExperience.java

This file was deleted.

50 changes: 0 additions & 50 deletions src/test/java/com/restfb/types/EducationTest.java

This file was deleted.

13 changes: 0 additions & 13 deletions src/test/java/com/restfb/types/UserTest.java
Expand Up @@ -80,19 +80,6 @@ void checkCoverPhoto() {
exampleUser.getCover().getSource());
}

@Test
void userWorkDates() {
User exampleUser = createJsonMapper().toJavaObject(jsonFromClasspath("v2_5/user-work"), User.class);
assertNotNull(exampleUser);
List<WorkExperience> workList = exampleUser.getWork();
assertEquals(1, workList.size());
WorkExperience work = workList.get(0);
assertNotNull(work.getStartDate());
assertEquals(1193875200000L, work.getStartDate().getTime());
assertNotNull(work.getEndDate());
assertEquals(1348963200000L, work.getEndDate().getTime());
}

@Test
void userLikes() {
User exampleUser = createJsonMapper().toJavaObject(jsonFromClasspath("v2_5/user-likes"), User.class);
Expand Down
46 changes: 0 additions & 46 deletions src/test/java/com/restfb/types/WorkExperienceTest.java

This file was deleted.

2 changes: 0 additions & 2 deletions src/test/java/com/restfb/types/api/ApiCheckGenerator.java
Expand Up @@ -83,8 +83,6 @@ public void createApiProperties() throws IOException {
props.setProperty("Url.methods", joinMethods(fetchMethodsFromClass(Url.class)));
props.setProperty("User.methods", joinMethods(fetchMethodsFromClass(User.class)));
props.setProperty("User.Currency.methods", joinMethods(fetchMethodsFromClass(User.Currency.class)));
props.setProperty("User.Education.methods", joinMethods(fetchMethodsFromClass(User.Education.class)));
props.setProperty("User.EducationClass.methods", joinMethods(fetchMethodsFromClass(User.EducationClass.class)));
props.setProperty("User.Sport.methods", joinMethods(fetchMethodsFromClass(User.Sport.class)));
props.setProperty("Video.methods", joinMethods(fetchMethodsFromClass(Video.class)));

Expand Down
16 changes: 0 additions & 16 deletions src/test/java/com/restfb/types/setter/UserTest.java
Expand Up @@ -47,22 +47,6 @@ void testCurrency() {
testInstance(obj);
}

@Test
void testEducation() {
User.Education obj = new User.Education();
addIgnoredField("rawUpdatedTime");
addIgnoredField("rawCreatedTime");
testInstance(obj);
}

@Test
void testEducationClass() {
User.EducationClass obj = new User.EducationClass();
addIgnoredField("rawUpdatedTime");
addIgnoredField("rawCreatedTime");
testInstance(obj);
}

@Test
void testSport() {
User.Sport obj = new User.Sport();
Expand Down
38 changes: 0 additions & 38 deletions src/test/java/com/restfb/types/setter/WorkExperienceTest.java

This file was deleted.

17 changes: 0 additions & 17 deletions src/test/resources/json/v2_2/education-year-named.json

This file was deleted.

8 changes: 0 additions & 8 deletions src/test/resources/json/v2_2/education.json

This file was deleted.

17 changes: 0 additions & 17 deletions src/test/resources/json/v2_5/user-work.json

This file was deleted.

13 changes: 0 additions & 13 deletions src/test/resources/json/v2_8/work-experience.json

This file was deleted.

4 changes: 1 addition & 3 deletions src/test/resources/pre-1.7-api.properties
Expand Up @@ -13,7 +13,6 @@ DeAuth.methods=getIssuedAt,getUserId,getProfileId,getAlgorithm
FacebookType.Metadata.methods=getType,equals,getFields,hashCode,toString,getConnections
Message.Attachment.methods=equals,getName,getImageData,hashCode,toString,getSize,getMimeType
Photo.methods=getComments,getLink,getPosition,getImages,getSource,getPlace,getBackdatedTime,getTags,getUpdatedTime,getIcon,getLikes,getHeight,getBackdatedTimeGranularity,getPicture,getFrom,getWidth,getCreatedTime
User.Education.methods=getDegree,getClasses,getType,getSchool,equals,getWith,hashCode,getConcentration,toString,getYear
MessageTag.methods=getOffset,getLength
User.Currency.methods=equals,getCurrencyExchange,getUserCurrency,hashCode,toString,getCurrencyOffset,getCurrencyExchangeInverse
Post.Property.methods=getText,equals,getName,hashCode,toString,getHref
Expand All @@ -38,14 +37,13 @@ ProfilePictureSource.methods=getHeight,getUrl,equals,hashCode,getWidth,toString,
Event.Owner.methods=getCategory,equals,getName,hashCode,toString,getCategoryList,getId
CategorizedFacebookType.methods=getCategory
StatusMessage.methods=getLikes,getMessage,getComments,getFrom,getPlace,getUpdatedTime
User.EducationClass.methods=getDescription,getWith
NamedFacebookType.methods=getName
Thread.methods=getUnseen,getComments,getTo,getUpdatedTime,getUnread
Comment.methods=getAttachment,getLikes,getMessage,getComments,getParent,getCanRemove,getLikeCount,getFrom,getCanComment,getCreatedTime,getUserLikes
StoryAttachment.methods=getMedia,getUrl,setUrl
Post.Shares.methods=equals,hashCode,toString,getCount
Account.methods=getPerms
User.methods=getQuotes,getLink,getEducation,getRelationshipStatus,getVerified,getUpdatedTime,getEmail,getWebsite,getFavoriteTeams,getLastName,getBio,getThirdPartyId,getInterestedIn,getMeetingFor,getMiddleName,getGender,getFavoriteAthletes,getSignificantOther,getLanguages,getCurrency,getAbout,getTimezone,getLocation,getLocale,getHometown,getBirthdayAsDate,getReligion,getPicture,getHometownName,getWork,getBirthday,getUsername,getPolitical,getSports,getFirstName
User.methods=getQuotes,getLink,getVerified,getUpdatedTime,getEmail,getFavoriteTeams,getLastName,getBio,getThirdPartyId,getMeetingFor,getMiddleName,getGender,getFavoriteAthletes,getSignificantOther,getLanguages,getCurrency,getTimezone,getLocation,getLocale,getHometown,getBirthdayAsDate,getPicture,getHometownName,getBirthday,getSports,getFirstName
PageConnection.methods=getCreatedTime
FacebookType.methods=getType,equals,hashCode,toString,getMetadata,getId
Note.methods=getMessage,getComments,getSubject,getFrom,getCreatedTime,getIcon,getUpdatedTime
Expand Down

0 comments on commit ff6bd94

Please sign in to comment.