Skip to content

chore: improve test coverage

Codacy Production / Codacy Static Code Analysis required action Oct 10, 2024 in 0s

4 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 10
- Added 4
           

Complexity increasing per file
==============================
- src/test/java/io/carbynestack/cli/util/OAuthUtilTest.java  2
- src/main/java/io/carbynestack/cli/util/OAuthUtil.java  4
- src/test/java/io/carbynestack/cli/util/TokenUtils.java  2
         

See the complete overview on Codacy

Annotations

Check notice on line 73 in src/test/java/io/carbynestack/cli/util/OAuthUtilTest.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/test/java/io/carbynestack/cli/util/OAuthUtilTest.java#L73

The JUnit 4 test method name 'givenServerCertIsUntrusted_whenRequesting_thenThrows' doesn't match '[a-z][a-zA-Z0-9]*'

Check notice on line 80 in src/test/java/io/carbynestack/cli/util/OAuthUtilTest.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/test/java/io/carbynestack/cli/util/OAuthUtilTest.java#L80

The JUnit 4 test method name 'givenContextConfiguredTrustAll_whenRequesting_thenSucceed' doesn't match '[a-z][a-zA-Z0-9]*'

Check notice on line 91 in src/test/java/io/carbynestack/cli/util/OAuthUtilTest.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/test/java/io/carbynestack/cli/util/OAuthUtilTest.java#L91

The JUnit 4 test method name 'givenServerCertIsTrusted_whenRequesting_thenSucceed' doesn't match '[a-z][a-zA-Z0-9]*'

Check notice on line 103 in src/test/java/io/carbynestack/cli/util/OAuthUtilTest.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/test/java/io/carbynestack/cli/util/OAuthUtilTest.java#L103

The JUnit 4 test method name 'givenCustomCertsDefined_whenRequestingServerWithCACert_thenSucceed' doesn't match '[a-z][a-zA-Z0-9]*'