コード例 #1
0
 protected void assertUpdate(
     LinkedInNetworkUpdate update,
     UpdateType type,
     Class<? extends UpdateContent> updateClass,
     Date date,
     String updateKey) {
   assertEquals(type, update.getUpdateType());
   assertEquals(updateClass, update.getUpdateContent().getClass());
   assertEquals(date, update.getTimestamp());
   assertEquals(updateKey, update.getUpdateKey());
 }
コード例 #2
0
 protected void assertProfile(
     LinkedInProfile connection,
     String id,
     String headline,
     String firstName,
     String lastName,
     String industry,
     String standardUrl) {
   assertEquals(id, connection.getId());
   assertEquals(headline, connection.getHeadline());
   assertEquals(firstName, connection.getFirstName());
   assertEquals(lastName, connection.getLastName());
   assertEquals(industry, connection.getIndustry());
 }
コード例 #3
0
 protected void assertShare(
     CurrentShare share,
     String id,
     String visibility,
     String serviceProvider,
     String accountHandle,
     String accountId,
     String shareId,
     String comment) {
   assertEquals(id, share.getId());
   assertEquals(serviceProvider, share.getSource().getServiceProvider());
   assertEquals(accountHandle, share.getSource().getServiceProviderAccountHandle());
   assertEquals(accountId, share.getSource().getServiceProviderAccountId());
   assertEquals(shareId, share.getSource().getServiceProviderShareId());
   assertEquals(comment, share.getComment());
   assertEquals(visibility, share.getVisibility());
 }
コード例 #4
0
 protected void assertLinkedInDate(LinkedInDate date, int year, int month, int day) {
   assertEquals(year, date.getYear());
   assertEquals(month, date.getMonth());
   assertEquals(day, date.getDay());
 }
コード例 #5
0
 protected void assertGroup(MemberGroup group, String id, String name, String url) {
   assertEquals(id, group.getId());
   assertEquals(name, group.getName());
   assertEquals(url, group.getSiteGroupRequest().getUrl());
 }
コード例 #6
0
 protected void assertRecommendation(
     Recommendation recommendation, String snippet, RecommendationType recommendationType) {
   assertEquals(recommendationType, recommendation.getRecommendationType());
   assertEquals(snippet, recommendation.getRecommendationSnippet());
 }
コード例 #7
0
 protected void assertPersonActivity(PersonActivity activity, Integer id, String body) {
   assertEquals((int) id, activity.getAppId());
   assertEquals(body, activity.getBody());
 }