This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context | |
import com.apptualizer.fakeapi.helper.ResourcesHelper | |
import com.apptualizer.fakeapi.helper.ResponseHelper | |
import okhttp3.* | |
import java.io.IOException | |
class FakeInterceptor @JvmOverloads constructor(val context: Context) : Interceptor { | |
@Throws(IOException::class) | |
override fun intercept(chain: Interceptor.Chain): Response { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.util.Log | |
import androidx.test.platform.app.InstrumentationRegistry | |
import java.io.BufferedReader | |
import java.io.IOException | |
import java.io.InputStreamReader | |
object ResourcesHelper { | |
fun loadFileAsString(path: String): String? { | |
var bufferedReader: BufferedReader? = null | |
try { |
OlderNewer