[fpc-other] FPCUnit, DUnit2 and JUnit licenses question

Graeme Geldenhuys graemeg at opensoft.homeip.net
Tue Jul 21 14:18:55 CEST 2009


Jonas Maebe wrote:
> 
> It does, but "implementation from scratch" <> "porting". 

And here follows the words from Dean Zobec himself. It was a discussion 
between him and myself on the fpc-pascal mailing list dated 2007-05-27.


======================
...
FPCUnit has a different structure then DUnit, is a literal port of the
JUnit test framework, with only some changes that were required to adapt
the Java code (callbacks instead of inner classes in some places iirc).
TTest is an abstract class, TTestSuite is a composite pattern. Just look
at the JUnit documentation, here you can find a UML diagram:

http://junit.sourceforge.net/doc/cookstour/cookstour.htm

and there is a good chapter available as an MIT Lecture on OOP and
patterns that takes the JUnit framework as a Case Study:
http://courses.csail.mit.edu/6.170/old-www/2001-Fall/lectures/lecture-17.pdf

I choose to adhere strictly to the JUnit framework as it was a standard
when the FPCUnit port was created, and no additional documentation of
the framework was needed (you could always refer to the JUnit
documentation and practice, a lot of articles and books were written on
the subject).

Still, it's not a good excuse for lack of documentation :)

Regards,
Dean
======================

Extract from the fpc-pascal archives...
   http://lists.freepascal.org/lists/fpc-pascal/2007-May/013811.html

In that quoted piece he mentions twice that FPCUnit is a port of JUnit. 
Maybe we should silently delete that message from the mailing list 
archives. ;-)  [...and once read, this message will self-destruct in 10 
seconds...]


Regards,
   - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/



More information about the fpc-other mailing list