This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I wrote a client that sends a message via HTTP and gets a certain response. Now I want to unit test 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