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
test-sources.

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. .buckconfig
  2. .gitignore
  3. BUCK
  4. BUILD
  5. LICENSE
  6. LICENSE-scribe
  7. README.md
  8. VERSION
  9. external_plugin_deps.bzl
  10. lib/
  11. src/
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.

License

Apache License 2.0