test: Fix sonatype complaints in the tests #1870
Quality Gate passed
Annotations
sonarqubecloud / SonarCloud Code Analysis
Replace these 4 tests with a single Parameterized one.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFQ0EbdAEiE0gypa&open=AZ0cSFQ0EbdAEiE0gypa&pullRequest=1870
sonarqubecloud / SonarCloud Code Analysis
Rename "sourceCredentials" which hides the field declared at line 149.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ1ofnJUaZ8ob9HyPF1b&open=AZ1ofnJUaZ8ob9HyPF1b&pullRequest=1870
sonarqubecloud / SonarCloud Code Analysis
Remove the declaration of thrown exception 'java.io.IOException', as it cannot be thrown from method's body.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFMgEbdAEiE0gypU&open=AZ0cSFMgEbdAEiE0gypU&pullRequest=1870
Check warning on line 164 in oauth2_http/javatests/com/google/auth/mtls/X509ProviderTest.java
sonarqubecloud / SonarCloud Code Analysis
Update this method so that its implementation is not identical to "x509Provider_succeeds_withEnvVariable" on line 138.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFRAEbdAEiE0gypc&open=AZ0cSFRAEbdAEiE0gypc&pullRequest=1870
Check warning on line 273 in oauth2_http/javatests/com/google/auth/oauth2/TokenVerifierTest.java
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Disabled" annotation.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFQbEbdAEiE0gypZ&open=AZ0cSFQbEbdAEiE0gypZ&pullRequest=1870
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFL5EbdAEiE0gypT&open=AZ0cSFL5EbdAEiE0gypT&pullRequest=1870
sonarqubecloud / SonarCloud Code Analysis
Replace these 3 tests with a single Parameterized one.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFPREbdAEiE0gypV&open=AZ0cSFPREbdAEiE0gypV&pullRequest=1870
Check failure on line 907 in oauth2_http/javatests/com/google/auth/oauth2/OAuth2CredentialsTest.java
sonarqubecloud / SonarCloud Code Analysis
Remove this assertion.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFQGEbdAEiE0gypY&open=AZ0cSFQGEbdAEiE0gypY&pullRequest=1870
sonarqubecloud / SonarCloud Code Analysis
Replace these 3 tests with a single Parameterized one.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFIjEbdAEiE0gypS&open=AZ0cSFIjEbdAEiE0gypS&pullRequest=1870
Check warning on line 854 in oauth2_http/javatests/com/google/auth/oauth2/OAuth2CredentialsTest.java
sonarqubecloud / SonarCloud Code Analysis
Either add an explanation about why this test is skipped or remove the "@Disabled" annotation.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFQGEbdAEiE0gypX&open=AZ0cSFQGEbdAEiE0gypX&pullRequest=1870
sonarqubecloud / SonarCloud Code Analysis
Replace these 4 tests with a single Parameterized one.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFQ0EbdAEiE0gypb&open=AZ0cSFQ0EbdAEiE0gypb&pullRequest=1870
sonarqubecloud / SonarCloud Code Analysis
Replace these 3 tests with a single Parameterized one.
See more on https://sonarcloud.io/project/issues?id=googleapis_google-auth-library-java&issues=AZ0cSFPrEbdAEiE0gypW&open=AZ0cSFPrEbdAEiE0gypW&pullRequest=1870