Hello,
I am trying to use mountebank to mock a tcp connection. In my application I am trying to read the response using:
BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
String result = reader.lines().collect(Collectors.joining("\n"));
but the stream seems to be stuck trying to read the response. If I shut down mountebank, the response is received correctly.
What am I missing? How can I signal the response ended?
Thank you