I wrote a client that sends a message via HTTP and gets a certain response. Now I want to unittest the HTTP sending. I did stub the client so I can test my other classes, but I would love to have the HTTP sending also in my automatic unit tests. Is there some "dummy HTTP server" I can start from code, and configure to give a certain response back? I probably am not the first one to need something like this, so I rather search first, before I start programming
What about mocking/stubbing the socket or something like that?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus