I have a simple game which consists of two projects: Client and server. Now I want to test if they interact correctly.
Setup is: One Maven-parent project, and server/client/integetion-test as child-modules.
I tried to follow this guide http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing, which is integration-testin using the maven-failsafe-plugin. Alas it is only describing how to start the jetty-server, which is available as a plugin.
How and where do I start my own client and server in this configuration (or is there a better one) for testing? I wanted to do something like this: First I want client and server to be started before the test. In the jUnittest I want to have a Socket and a Serversocket, one connected to the server and one to the client. Then I want to pipe the client/server-interaction through this setup and verify it in between, or send specific messages to them individually, verifying the answer.
Is something like that possible, or is there a better way?