@Test public void testBuildActivityPermalink() { CreateUrlRequest result = sut.buildActivityPermalinkUrlRequest(ACTIVITY_ID, EntityType.PERSON, STREAM_UNIQUE_ID, null); assertEquals(Page.ACTIVITY, result.getPage()); assertEquals(ACTIVITY_ID, Long.parseLong(result.getViews().get(0))); }
@Override public CreateUrlRequest buildActivityPermalinkUrlRequest(final long inActivityId, final EntityType inStreamType, final String inStreamUniqueId, final Map<String, String> inExtraParameters) { return new CreateUrlRequest(Page.ACTIVITY, Long.toString(inActivityId)); }
SamePageActivityLinkBuilder extends BaseActivityLinkBuilder { @Override public CreateUrlRequest buildActivityPermalinkUrlRequest(final long inActivityId, final EntityType inStreamType, final String inStreamUniqueId, final Map<String, String> inExtraParameters) { return new CreateUrlRequest(Page.ACTIVITY, Long.toString(inActivityId)); } }
SamePageActivityLinkBuilder extends BaseActivityLinkBuilder { @Override public CreateUrlRequest buildActivityPermalinkUrlRequest(final long inActivityId, final EntityType inStreamType, final String inStreamUniqueId, final Map<String, String> inExtraParameters) { return new CreateUrlRequest(Page.ACTIVITY, Long.toString(inActivityId)); }  }
SamePageActivityLinkBuilder extends BaseActivityLinkBuilder { @Override public CreateUrlRequest buildActivityPermalinkUrlRequest(final long inActivityId, final EntityType inStreamType, final String inStreamUniqueId, final Map<String, String> inExtraParameters) { return new CreateUrlRequest(Page.ACTIVITY, Long.toString(inActivityId)); }  @Override CreateUrlRequest buildActivityPermalinkUrlRequest(final long inActivityId, final EntityType inStreamType,
            final String inStreamUniqueId, final Map<String, String> inExtraParameters); }
SamePageActivityLinkBuilder extends BaseActivityLinkBuilder { @Override public CreateUrlRequest buildActivityPermalinkUrlRequest(final long inActivityId, final EntityType inStreamType, final String inStreamUniqueId, final Map<String, String> inExtraParameters) { return new CreateUrlRequest(Page.ACTIVITY, Long.toString(inActivityId)); }  @Override CreateUrlRequest buildActivityPermalinkUrlRequest(final long inActivityId, final EntityType inStreamType,
            final String inStreamUniqueId, final Map<String, String> inExtraParameters);  }