Load TestUtils.java as a library instead of a test source file

The tests of the cfoauth-plugin failed on master branch with 3 failures.
One failure was caused by the TestUtils-class, which did not contain
any method annotated with `@Test`, causing Junit to raise
`java.lang.Exception: No runnable methods tests`.

This change creates a library containing the TestUtils-class, which is
loaded as a test-dependency and excludes TestUtils.java from the

This fixes one of the three observed test failures. The other test
failures will be addressed in a dedicated change.

Change-Id: I393969b46c39757d8bd4c84cda8d3b8a884b7510
1 file changed
tree: f7d04c4a1d1e8a9c8fc938bb70c977f722647954
  1. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. BUCK
  6. BUILD
  7. external_plugin_deps.bzl
  9. LICENSE-scribe
  10. README.md

Cloud Foundry UAA OAuth 2.0 Authentication Provider

With this plugin Gerrit can use OAuth2 protocol to authenticate users accessing Gerrit's Web UI with a CloudFoundry User Account and Authentication (UAA) server. The Sign In link will redirect the user to the UAA login screen.

For Git-over-HTTP communication users still need to generate and use an HTTP password.


Apache License 2.0