Workaround the inaccessbility of WebSessionManager.Val

The inability to mock the guava cache and also
the WebSessionManager.Val force the need to "hack" the access
to a "fake" Val by hijacking the constructor with a static
method inside the same package com.google.gerrit.httpd.

The hack allows to resume the normal execution of
the mocked tests since the introduction of the stricter
errorprone rules that denied the Guava cache mocking.

Change-Id: I1efcd1b145cae7f7921019fc21c8f34e72d5288e
2 files changed
tree: fa3a48c37cdc1467d64903ee93b514b395d6c9f7
  1. src/
  2. .gitignore
  3. BUILD
  4. external_plugin_deps.bzl
  5. LICENSE
  6. README.md
  7. WORKSPACE
README.md

plugins_websession-broker

Gerrit Code Review plugin for storing and broadcasting websessions to an external broker