From basic at us.netrek.org Mon Jan 21 15:07:56 2013 From: basic at us.netrek.org (Bob Tanner) Date: Mon, 21 Jan 2013 15:07:56 -0600 Subject: [netrek-dev] Mock Server? Message-ID: Working on my 3rd evolution of an objective-c network library for netrek. This one feels right. But I want to finish writing my test suite. Is there a way to simulate (mock object) the server? I'd like a way to control the packets sent to my network library so I can test it. Vaguely recall James talking about something like this. Thanks. -- Bob Tanner Key fingerprint = 9906 320A 8BB6 64AD 96A7 7785 CBFB 10BF 568B F98C From quozl at us.netrek.org Mon Jan 21 15:38:31 2013 From: quozl at us.netrek.org (James Cameron) Date: Tue, 22 Jan 2013 08:38:31 +1100 Subject: [netrek-dev] Mock Server? In-Reply-To: References: Message-ID: <20130121213831.GE28933@us.netrek.org> I don't recall, sorry. Like any good test case code, the best way would be to write something to inject every possible value into every packet. I would be interested in re-using this with the two clients I maintain. -- James Cameron http://quozl.linux.org.au/