Skip to content

Issue #1516: increase test coverage to 80%#1518

Open
thboileau-git wants to merge 1 commit into
2.7from
thboileau/1516_test_coverage_80
Open

Issue #1516: increase test coverage to 80%#1518
thboileau-git wants to merge 1 commit into
2.7from
thboileau/1516_test_coverage_80

Issue #1516: increase test coverage to 80%

a3e2e22
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jul 5, 2026 in 1m 8s

Annotations

Check warning on line 108 in org.restlet/src/test/java/org/restlet/data/ChallengeResponseTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Swap these 2 arguments so they are in the correct order: expected value, actual value.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2I6pHPotZ9rh3xY&open=AZ8zN2I6pHPotZ9rh3xY&pullRequest=1518

Check warning on line 56 in org.restlet/src/test/java/org/restlet/engine/resource/VariantInfoTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertEquals instead.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2F8pHPotZ9rh3wn&open=AZ8zN2F8pHPotZ9rh3wn&pullRequest=1518

Check warning on line 100 in org.restlet/src/test/java/org/restlet/engine/converter/DefaultConverterTestCase.java

See this annotation in the file changed.

@sonarqubecloud 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=restlet_restlet-framework-java&issues=AZ8zN2GLpHPotZ9rh3ww&open=AZ8zN2GLpHPotZ9rh3ww&pullRequest=1518

Check failure on line 37 in org.restlet/src/test/java/org/restlet/engine/CompositeHelperTestCase.java

See this annotation in the file changed.

@sonarqubecloud 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=restlet_restlet-framework-java&issues=AZ8zN2GSpHPotZ9rh3wz&open=AZ8zN2GSpHPotZ9rh3wz&pullRequest=1518

Check warning on line 52 in org.restlet/src/test/java/org/restlet/engine/converter/DefaultConverterTestCase.java

See this annotation in the file changed.

@sonarqubecloud 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=restlet_restlet-framework-java&issues=AZ8zN2GLpHPotZ9rh3ws&open=AZ8zN2GLpHPotZ9rh3ws&pullRequest=1518

Check warning on line 179 in org.restlet.ext.xml/src/test/java/org/restlet/ext/xml/SaxRepresentationTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2KApHPotZ9rh3xj&open=AZ8zN2KApHPotZ9rh3xj&pullRequest=1518

Check failure on line 227 in org.restlet.ext.xml/src/test/java/org/restlet/ext/xml/TransformRepresentationTestCase.java

See this annotation in the file changed.

@sonarqubecloud 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=restlet_restlet-framework-java&issues=AZ8zN2KZpHPotZ9rh3xq&open=AZ8zN2KZpHPotZ9rh3xq&pullRequest=1518

Check warning on line 47 in org.restlet.ext.crypto/src/test/java/org/restlet/ext/crypto/internal/HttpDigestVerifierTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Immediately return this expression instead of assigning it to the temporary variable "request".

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2B5pHPotZ9rh3wM&open=AZ8zN2B5pHPotZ9rh3wM&pullRequest=1518

Check warning on line 39 in org.restlet/src/test/java/org/restlet/engine/header/RecipientInfoWriterTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2FHpHPotZ9rh3wX&open=AZ8zN2FHpHPotZ9rh3wX&pullRequest=1518

Check warning on line 108 in org.restlet/src/test/java/org/restlet/engine/application/StatusFilterTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertNotEquals instead.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2FPpHPotZ9rh3wZ&open=AZ8zN2FPpHPotZ9rh3wZ&pullRequest=1518

Check failure on line 96 in org.restlet/src/test/java/org/restlet/engine/io/RangeInputStreamTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2FtpHPotZ9rh3wh&open=AZ8zN2FtpHPotZ9rh3wh&pullRequest=1518

Check warning on line 121 in org.restlet/src/test/java/org/restlet/util/WrapperListTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertNotEquals instead.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2HlpHPotZ9rh3xE&open=AZ8zN2HlpHPotZ9rh3xE&pullRequest=1518

Check failure on line 163 in org.restlet/src/test/java/org/restlet/routing/RedirectorTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2JspHPotZ9rh3xg&open=AZ8zN2JspHPotZ9rh3xg&pullRequest=1518

Check warning on line 67 in org.restlet/src/test/java/org/restlet/engine/converter/DefaultConverterTestCase.java

See this annotation in the file changed.

@sonarqubecloud 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=restlet_restlet-framework-java&issues=AZ8zN2GLpHPotZ9rh3wv&open=AZ8zN2GLpHPotZ9rh3wv&pullRequest=1518

Check warning on line 99 in org.restlet/src/test/java/org/restlet/service/ConverterServiceTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2G_pHPotZ9rh3w5&open=AZ8zN2G_pHPotZ9rh3w5&pullRequest=1518

Check warning on line 60 in org.restlet/src/test/java/org/restlet/engine/util/SystemUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertNotEquals instead.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2FYpHPotZ9rh3wa&open=AZ8zN2FYpHPotZ9rh3wa&pullRequest=1518

Check warning on line 38 in org.restlet/src/test/java/org/restlet/data/ParameterTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2I0pHPotZ9rh3xV&open=AZ8zN2I0pHPotZ9rh3xV&pullRequest=1518

Check warning on line 67 in org.restlet/src/test/java/org/restlet/data/HeaderTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Swap these 2 arguments so they are in the correct order: expected value, actual value.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2JHpHPotZ9rh3xa&open=AZ8zN2JHpHPotZ9rh3xa&pullRequest=1518

Check failure on line 31 in org.restlet/src/test/java/org/restlet/engine/RestletHelperTestCase.java

See this annotation in the file changed.

@sonarqubecloud 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=restlet_restlet-framework-java&issues=AZ8zN2FmpHPotZ9rh3wd&open=AZ8zN2FmpHPotZ9rh3wd&pullRequest=1518

Check warning on line 94 in org.restlet/src/test/java/org/restlet/data/ChallengeMessageTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Swap these 2 arguments so they are in the correct order: expected value, actual value.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2JkpHPotZ9rh3xe&open=AZ8zN2JkpHPotZ9rh3xe&pullRequest=1518

Check failure on line 221 in org.restlet.ext.xml/src/test/java/org/restlet/ext/xml/TransformRepresentationTestCase.java

See this annotation in the file changed.

@sonarqubecloud 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=restlet_restlet-framework-java&issues=AZ8zN2KZpHPotZ9rh3xo&open=AZ8zN2KZpHPotZ9rh3xo&pullRequest=1518

Check warning on line 136 in org.restlet/src/test/java/org/restlet/util/ServiceListTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertNotNull instead.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2HTpHPotZ9rh3w_&open=AZ8zN2HTpHPotZ9rh3w_&pullRequest=1518

Check warning on line 75 in org.restlet/src/test/java/org/restlet/util/NonNullItemsListTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2H3pHPotZ9rh3xJ&open=AZ8zN2H3pHPotZ9rh3xJ&pullRequest=1518

Check warning on line 356 in org.restlet.ext.xml/src/test/java/org/restlet/ext/xml/XmlRepresentationTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2KIpHPotZ9rh3xl&open=AZ8zN2KIpHPotZ9rh3xl&pullRequest=1518

Check failure on line 198 in org.restlet/src/test/java/org/restlet/routing/RedirectorTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AZ8zN2JspHPotZ9rh3xh&open=AZ8zN2JspHPotZ9rh3xh&pullRequest=1518