From: dejaspam@... (Bill Atkins) Date: 2004-04-12T01:14:17+09:00 Subject: Testing a Protocol Class I'm in the process of writing a series of classes to connect to an AOL OSCAR server (the servers used by AIM), but I'm not quite sure how to set up tests for the classes. Basically, what I have now is a test.rb file that creates a new thread to run a mock OSCAR server. The test code then connects to the mock server and does its thing. I then check the log messages to see if the authentication and such have gone as they should. I'd like some way to use Test::Unit to run unit tests for this project, but I'm not entirely sure how to do that, since I can't test individual methods unless there are sockets set up for transfer. Is my mock server approach appropriate or is there some other way to do unit testing for a protocol client? Bill Atkins