HowTo Unit Test Client Server Code

后端 未结 5 1956
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 03:55

I\'m currently writing a Java Client Server Application. So i want to implement two Libraries, one for the Client and one for the Server. The Client Server Communication has

5条回答
  •  清酒与你
    2020-12-29 04:17

    My suggestion would be to use two levels of testing:

    1. For your client/server project, include some mocking in your unit tests to ensure the object interfaces are working as expected.

    2. Following the build, have a more extensive integration test run, with automation to install the compiled client and server on one or more test systems. Then you can ensure that all the particulars of the protocol are tested thoroughly. Have this integration test project triggered on each successful build of the client/server project. You can use JUnit for this and still receive the conventional report from Hudson.

提交回复
热议问题