james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Fondermann <bf_...@brainlounge.de>
Subject adding unit tests
Date Mon, 17 Oct 2005 20:50:12 GMT

I'd like to get involved with James' development.

As a first step I wanted to do something non-intrusive, yet helpfull, 
where I would get to understand how James works.
So, I started by setting up Unit Testing.

A very simple first test case for SMTPServer is succeeding.

I'm using JUnit 3.8.1 and Ristretto 1.0 (MLP1.1).

Some details:

+ TestCase and Helpers go under src/test, currently with packages
+ Unit Test runs on a randomly chosen non-privileged port
+ TestCase mocks a Avalon environment
+ SMPTServerTest.testMail() fires up a SMTP Server and starts creating 
an email.
+ JUnit and Ristretto are filed under tools/lib
+ class-files go into build/testclasses
+ test reports go into build/testreports
+ unit tests are compiled by a separate ant-target and not mixed up with 
the other non-test classes
+ unit tests can be executed from ant

Please let me know if this is a usefull path to follow and what should 
be adjusted.

-- Bernd

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message