Create missing tests for repository purge
-----------------------------------------
Key: MRM-453
URL: http://jira.codehaus.org/browse/MRM-453
Project: Archiva
Issue Type: Improvement
Affects Versions: 1.0-beta-1
Reporter: Maria Odea Ching
Comments from MRM-294:
A general thought here too, for later: it might be worth reviewing the
exceptions that can occur in *Purge and see if we can recover better from each
rather than bubbling it
Tests:
* I think you can remove many of the components from the test XML files
where the default suffice (just keep the registry and jdo factory)
* the tests have a lot of bolierplate that can probably be turned into
methods that generate test data
Missing tests:
* no tests for the consumer or the Released Snapshots purge
* days old test is only testing by file age - it should also test the
metadata-driven snapshots
A general thought for Archiva in the long term, too... setting up the database
to test this was probably a pain. We should have stub implementations of the
indexer and dao's to avoid it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira