Bhavik Kothari created SLING-13052:
--------------------------------------
Summary: [SONAR] Add missing assertions to AdapterFactoryTest
(java:S2699)
Key: SLING-13052
URL: https://issues.apache.org/jira/browse/SLING-13052
Project: Sling
Issue Type: Test
Components: Sling Models
Reporter: Bhavik Kothari
*SonarCloud Issue:*
[java:S2699](https://rules.sonarsource.com/java/RSPEC-2699/) - Tests should
include assertions
*Location:* src/test/java/org/apache/sling/models/impl/AdapterFactoryTest.java
: (L310)
*Problem:*
SonarCloud flagged `AdapterFactoryTest` for having test methods without
assertions. These tests currently only verify that no exception is thrown but
do not validate the actual logic.
*Proposed Fix:*
Add `assertNotNull`, `assertEquals` calls to the affected test methods to
ensure proper validation.
*Reference:*
https://sonarcloud.io/project/issues?impactSeverities=BLOCKER&issueStatuses=OPEN%2CCONFIRMED&id=apache_sling-org-apache-sling-models-impl&open=AWo5WyPDyRjJygCrF7Ae&tab=why
--
This message was sent by Atlassian Jira
(v8.20.10#820010)