diff --git a/cab-token-generator/pom.xml b/cab-token-generator/pom.xml index 4153463af..8f1c85d1b 100644 --- a/cab-token-generator/pom.xml +++ b/cab-token-generator/pom.xml @@ -55,6 +55,8 @@ mockito-core 4.11.0 test + + com.google.protobuf protobuf-java diff --git a/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java b/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java index c0b80450b..f3dd4f38c 100644 --- a/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java +++ b/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java @@ -90,6 +90,7 @@ public void addScopeSequence(List scopes) { @Override public LowLevelHttpRequest buildRequest(final String method, final String url) { + requestCount++; this.request = new MockLowLevelHttpRequest(url) { @Override @@ -188,4 +189,8 @@ public void setReturnExpiresIn(boolean returnExpiresIn) { public void setReturnAccessBoundarySessionKey(boolean returnAccessBoundarySessionKey) { this.returnAccessBoundarySessionKey = returnAccessBoundarySessionKey; } + + public int getRequestCount() { + return requestCount; + } }