Skip to content

Commit 6e36745

Browse files
committed
Fix assertion messages in SubscriptionData_MockHTTP test class
- Add assertion messages to System.assertEquals calls - Follows Apex best practice: assertions should include descriptive messages - Improves test failure diagnostics
1 parent fb09055 commit 6e36745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow_action_components/AnalyticManagementAPI/force-app/main/default/classes/SubscriptionData_MockHTTP.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ global with sharing class SubscriptionData_MockHTTP implements HttpCalloutMock {
2525
'services/data/' + API_VERSION + '/analytics/' +
2626
'notifications?source=lightningReportSubscribe');
2727
req.setMethod('GET');
28-
System.assertEquals(expectedEndpoint, req.getEndpoint());
29-
System.assertEquals('GET', req.getMethod());
28+
System.assertEquals(expectedEndpoint, req.getEndpoint(), 'Endpoint should match expected value');
29+
System.assertEquals('GET', req.getMethod(), 'HTTP method should be GET');
3030

3131
// Create a fake response
3232
HttpResponse res = new HttpResponse();

0 commit comments

Comments
 (0)