> + * The name of the resource.
> + * @return The content of the resource
> + */
> + public String stringFromResource(String resourceName) {
> + try {
> + return
> Strings2.toStringAndClose(getClass().getResourceAsStream(resourceName));
> + } catch (IOException e) {
> + throw Throwables.propagate(e);
> + }
> + }
> +
> + /**
> + * Ensures server received authentication request.
> + */
> + public void assertAuthentication(MockWebServer server) {
> + assertEquals(server.getRequestCount(), 2);
You can't assert that the request count will be 2 in a base class like this.
There are many mock tests that have more requests than that.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/224/files#r8221382