commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-commons Wiki] Update of "Collections/GenericCollections/DevelopmentGuidelines" by StephenKestle
Date Mon, 26 Mar 2007 13:37:08 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-commons Wiki" for change notification.

The following page has been changed by StephenKestle:
http://wiki.apache.org/jakarta-commons/Collections/GenericCollections/DevelopmentGuidelines

The comment on the change is:
Added ideas about testing generic collections

New page:
(This page needs debate or consensus)

== Testing ==
As a core Java development API (and without any external system dependencies), Collections
should have a set of tests that are '''deterministic (quasi-mathmatical) proofs''' of the
operation of the system.  Each test should stand alone.

=== JUnit 4 ===

JUnit will most likely be used as the testing library as it has good literacy in the community,
is what is already in use in collections (so the existing tests run without change).
While TestNG is an excellent framework for testing, and does all sorts of wonderful stuff
to help test "real" systems, collections is not one of those systems.  All it's code is able
to be tested in complete isolation from any external input, and the most complicated dependant
tests are relatively simple.

=== Mock Objects ===
For testing the new version, we will be using [dynamic] Mock Objects.  This is because they
provide absolute isolation of the classes under test.  Because the collections package is
a core api, and is relatively simple, there is no need to test with fully constructed objects
[and they'd get in the way over time].

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


Mime
View raw message