yyqdbngt opened a new pull request, #3793:
URL: https://github.com/apache/rocketmq-dashboard/pull/3793

   ### Motivation
   
   The existing `QueryHistoryServiceTest` covers recording, purging, listing 
and summarising, but the `buildResultSnapshot`/`getMessageQueryResults` pair 
that moves result payloads in and out of storage was untested.
   
   ### Changes
   
   - `buildResultSnapshotShouldReturnNullForNullOrEmptyResults`: a null or 
empty result list produces no snapshot payload.
   - `getMessageQueryResultsShouldReturnEmptyForMissingOrBlankSnapshot`: 
history rows without a stored snapshot (null or whitespace-only) resolve to an 
empty result page.
   - `getMessageQueryResultsShouldRejectUnknownRecord`: an unknown history id 
raises a 404 business error.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=QueryHistoryServiceTest
   [INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to