Fix malfunctioning tests

Fix testDoFilterWithExistingProjectAndPackage test by adding a missing
line which adds a mock project to the cache. Without this line, the test
will assume that the entire string used is a valid project which is not
the case (The extra is meant to represent a package, not a project).
This fix is based on the changes made on the parent commit.

Fix testDoFilterWithNonExistingProject test by using empty option.
Optional.of does not work with null values and will throw a
NullPointerException when the argument is null. empty returns an empty
Optional value best representing the test case of a non existing
project.

Bug: Issue 12454
Change-Id: I356751bec4ccb6f44226219c9ae7b41e7dc02cd7
1 file changed
tree: 507d7cf1a249a5da3f2a598eb16d56b5b51f78ca
  1. .settings/
  2. src/
  3. tools/
  4. .bazelignore
  5. .bazelrc
  6. .bazelversion
  7. .gitignore
  8. bazlets.bzl
  9. BUILD
  10. LICENSE
  11. README.md
  12. WORKSPACE
README.md

This plugin allows you to perform go get requests against a Gerrit project.

For more information, see: src/main/resources/Documentation/about.md