adding FetchbillByBillId
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user