Add unit tests for ResponseValidator with Mockito integration
Introduced `ResponseValidatorTest` to comprehensively test the `ResponseValidator` class. Enhanced the project dependencies by updating JUnit to 5.12.2 and integrating Mockito with `mockito-junit-jupiter` 5.17.0 for mocking support. Clarified Javadoc for handling `RecordMultipleResponse` cases in `ResponseValidator`.
This commit is contained in:
@@ -14,9 +14,9 @@ import java.util.stream.Collectors;
|
||||
* <li>It checks whether the API response was successful by analyzing the associated response
|
||||
* metadata. If the response indicates failure, an exception is thrown with descriptive error
|
||||
* messages.
|
||||
* <li>It validates the number of results in the API response payload to detect unexpected counts.
|
||||
* Depending on the configuration, discrepancies in result count or an empty result may trigger
|
||||
* exceptions.
|
||||
* <li>If a {@link RecordMultipleResponse} is used, it validates the number of results in the API
|
||||
* response payload to detect unexpected counts. Depending on the configuration,
|
||||
* discrepancies in the result count or an empty result may trigger exceptions.
|
||||
* </ul>
|
||||
*/
|
||||
class ResponseValidator {
|
||||
|
||||
Reference in New Issue
Block a user