adding FetchbillByBillId

This commit is contained in:
himanshu
2025-10-27 10:48:19 +05:30
parent 33d80218b4
commit cde8b79d53
24 changed files with 568 additions and 41 deletions
@@ -0,0 +1,28 @@
package com.billpaymentservice.bbps.controller;
import com.billpaymentservice.bbps.serviceImpl.HttpService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.HashMap;
import static org.junit.jupiter.api.Assertions.*;
@SpringBootTest
public class TestHttpControllerTest {
@Autowired
private HttpService httpService;
@Test
void testGetRequest() {
String url = "https://bbps-staging.digiledge.in/agent/cou-master/masters/billersById?billerId=ADAN00000HAR02"; // Dummy public GET API
HashMap<String, String> response = httpService.getRequest(url);
System.out.println("✅ GET Response: " + response);
System.out.println(response);
}
}