Hello I have a private function to test. Since I ...
# spring
k
Hello I have a private function to test. Since I can’t test private functions, I’m trying to test a function that uses this private function
Copy code
private fun makeFormData()

fun sendDataToServer() = <http://client.post|client.post>().body(makeFormData())
The function that uses private function sends a http request to another server. Is there a way to capture this request and assert on body data?