@Test public void testBuildCookieForRefTagAndProject_WithMalformedUrl() { final Project.Urls.Web webUrls = ProjectFactory.project().urls().web().toBuilder().project("such:\\bad^<data").build(); final Project.Urls urls = ProjectFactory.project().urls().toBuilder().web(webUrls).build(); final Project project = ProjectFactory.project().toBuilder().urls(urls).build(); final RefTag refTag = RefTag.category(); final HttpCookie cookie = RefTagUtils.buildCookieWithRefTagAndProject(refTag, project); assertNull(cookie); }
public static @Nullable HttpCookie buildCookieWithRefTagAndProject(final @NonNull RefTag refTag, final @NonNull Project project) { return buildCookieWithValueAndProject(cookieValueForRefTag(refTag), project); }
RefTagUtils { public static @Nullable HttpCookie buildCookieWithRefTagAndProject(final @NonNull RefTag refTag, final @NonNull Project project) { return buildCookieWithValueAndProject(cookieValueForRefTag(refTag), project); } }
RefTagUtils { public static @Nullable HttpCookie buildCookieWithRefTagAndProject(final @NonNull RefTag refTag, final @NonNull Project project) { return buildCookieWithValueAndProject(cookieValueForRefTag(refTag), project); } private  RefTagUtils(); }
RefTagUtils { public static @Nullable HttpCookie buildCookieWithRefTagAndProject(final @NonNull RefTag refTag, final @NonNull Project project) { return buildCookieWithValueAndProject(cookieValueForRefTag(refTag), project); } private  RefTagUtils(); static @Nullable RefTag storedCookieRefTagForProject(final @NonNull Project project,
    final @NonNull CookieManager cookieManager, final @NonNull SharedPreferences sharedPreferences); static @Nullable HttpCookie buildCookieWithRefTagAndProject(final @NonNull RefTag refTag,
    final @NonNull Project project); static @NonNull Pair<Project, RefTag> projectAndRefTagFromParamsAndProject(final @NonNull DiscoveryParams params,
    final @NonNull Project project); static void storeCookie(final @NonNull RefTag refTag, final @NonNull Project project,
    final @NonNull CookieManager cookieManager, final @NonNull SharedPreferences sharedPreferences); }
RefTagUtils { public static @Nullable HttpCookie buildCookieWithRefTagAndProject(final @NonNull RefTag refTag, final @NonNull Project project) { return buildCookieWithValueAndProject(cookieValueForRefTag(refTag), project); } private  RefTagUtils(); static @Nullable RefTag storedCookieRefTagForProject(final @NonNull Project project,
    final @NonNull CookieManager cookieManager, final @NonNull SharedPreferences sharedPreferences); static @Nullable HttpCookie buildCookieWithRefTagAndProject(final @NonNull RefTag refTag,
    final @NonNull Project project); static @NonNull Pair<Project, RefTag> projectAndRefTagFromParamsAndProject(final @NonNull DiscoveryParams params,
    final @NonNull Project project); static void storeCookie(final @NonNull RefTag refTag, final @NonNull Project project,
    final @NonNull CookieManager cookieManager, final @NonNull SharedPreferences sharedPreferences);  }