@Test public void testBuildActivityPermalink1() { context.checking(new Expectations() { { oneOf(session).generateUrl(with(same(request))); will(returnValue(URL)); } }); expectedParameters = null; String result = sut.buildActivityPermalink(ACTIVITY_ID, STREAM_TYPE, STREAM_UNIQUE_ID); context.assertIsSatisfied(); assertEquals(URL, result); }
public String buildActivityPermalink(final long activityId, final EntityType streamType, final String streamUniqueId) { return Session.getInstance().generateUrl( buildActivityPermalinkUrlRequest(activityId, streamType, streamUniqueId, null)); }
BaseActivityLinkBuilder { public String buildActivityPermalink(final long activityId, final EntityType streamType, final String streamUniqueId) { return Session.getInstance().generateUrl( buildActivityPermalinkUrlRequest(activityId, streamType, streamUniqueId, null)); } }
BaseActivityLinkBuilder { public String buildActivityPermalink(final long activityId, final EntityType streamType, final String streamUniqueId) { return Session.getInstance().generateUrl( buildActivityPermalinkUrlRequest(activityId, streamType, streamUniqueId, null)); }  }
BaseActivityLinkBuilder { public String buildActivityPermalink(final long activityId, final EntityType streamType, final String streamUniqueId) { return Session.getInstance().generateUrl( buildActivityPermalinkUrlRequest(activityId, streamType, streamUniqueId, null)); }  String buildActivityPermalink(final long activityId, final EntityType streamType,
            final String streamUniqueId); String buildActivityPermalink(final long activityId, final EntityType streamType,
            final String streamUniqueId, final Map<String, String> extraParameters); abstract CreateUrlRequest buildActivityPermalinkUrlRequest(final long activityId,
            final EntityType streamType, final String streamUniqueId, final Map<String, String> extraParameters); void addExtraParameter(final String key, final Object value); }
BaseActivityLinkBuilder { public String buildActivityPermalink(final long activityId, final EntityType streamType, final String streamUniqueId) { return Session.getInstance().generateUrl( buildActivityPermalinkUrlRequest(activityId, streamType, streamUniqueId, null)); }  String buildActivityPermalink(final long activityId, final EntityType streamType,
            final String streamUniqueId); String buildActivityPermalink(final long activityId, final EntityType streamType,
            final String streamUniqueId, final Map<String, String> extraParameters); abstract CreateUrlRequest buildActivityPermalinkUrlRequest(final long activityId,
            final EntityType streamType, final String streamUniqueId, final Map<String, String> extraParameters); void addExtraParameter(final String key, final Object value);  }