merging code arham1

This commit is contained in:
himanshu
2025-11-03 10:49:04 +05:30
parent 3f27b5272a
commit 680d05b5bd
7 changed files with 150 additions and 174 deletions
@@ -0,0 +1,12 @@
package com.billpaymentservice.bbps;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class BbpsApplicationTests {
@Test
void contextLoads() {
}
}
@@ -1,28 +0,0 @@
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);
}
}