y1z2g3 / owasp-esapi-java

Automatically exported from code.google.com/p/owasp-esapi-java
Other
0 stars 0 forks source link

Unit tests should test interface and only interface #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The unit tests packaged with ESAPI should only test the interface and not
contain code that is specific to the default implementations. This means
two things in particular:

1. All types should be from the API interfaces
2. Methods called on instances being tested should only reflect those in
the API

Specific tests that call methods not in the API:
* AuthenticatorTest.testSaveUsers

... more to come.

Original issue reported on code.google.com by cyounk...@gmail.com on 31 Jul 2009 at 7:46

GoogleCodeExporter commented 8 years ago
Maybe split the tests in two. One folder for interface and one for default
implementations. That way you can still test the default implementations on a 
finer
granularity.

Original comment by eofte...@gmail.com on 10 Sep 2009 at 6:54

GoogleCodeExporter commented 8 years ago

Original comment by manico.james@gmail.com on 1 Nov 2010 at 5:57

GoogleCodeExporter commented 8 years ago

Original comment by chrisisbeef on 20 Nov 2010 at 9:14

GoogleCodeExporter commented 8 years ago

Original comment by chrisisbeef on 20 Nov 2010 at 9:14

GoogleCodeExporter commented 8 years ago

Original comment by chrisisbeef on 20 Nov 2010 at 9:14

GoogleCodeExporter commented 8 years ago

Original comment by chrisisbeef on 20 Nov 2010 at 9:15