test:implement unit tests for fetching campaigns and fix DTO mocking logic

This commit is contained in:
Kota-Jagadeesh 2025-10-18 22:38:11 +05:30
parent 3e6561cdbf
commit 77ea890ea3

View file

@ -240,7 +240,7 @@ class OkHttpJsonApiClientTests {
fun loadJsonFromResource(fileName: String): String {
val resourcePath = "raw/$fileName"
//use the classloader to find the resource in the test environment
//uses the classloader to find the resource in the test environment
val inputStream = javaClass.classLoader?.getResourceAsStream(resourcePath)
if (inputStream != null) {