Issue #1516: increase test coverage to 80%#1518
Quality Gate passed
Annotations
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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