maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maria Odea Ching (JIRA)" <>
Subject [jira] Closed: (MRM-453) Create missing tests for repository purge
Date Mon, 27 Aug 2007 12:31:11 GMT


Maria Odea Ching closed MRM-453.

    Resolution: Fixed

Final fix -r570089

Fix for the test cases:
- Added tests for metadata driven snapshots in DaysOldRepositoryPurgeTest
- Added test data

Changes made in DaysOldRepositoryPurge:
- Added functionality to consider the metadata driven snapshots (check the timestamp in the
filename first before the last modified date of the 
file if it is a unique versioned snapshot)

> Create missing tests for repository purge
> -----------------------------------------
>                 Key: MRM-453
>                 URL:
>             Project: Archiva
>          Issue Type: Improvement
>    Affects Versions: 1.0-beta-1
>            Reporter: Maria Odea Ching
>            Assignee: Maria Odea Ching
>             Fix For: 1.0-beta-2
> 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
> 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:
For more information on JIRA, see:


View raw message