Community
Participate
Working Groups
Bug 214816 added support for local caching of remote metadata repositories. We need some tests for this, since there are many different code paths to exercise: local vs. remote repository, xml vs. jar format, stale cache vs. valid cache, etc.
Created attachment 89662 [details] Metadata Caching Tests v01 Patch changes: +Added a test for local repos. Creates a repo and checks that a local cache was not created. +Added a test for remote repos. Loads a remote repo and checks that a local cache was created. Modifies the cache's timestamp and reloads the repo to check that the cache file is updated. Reloads the repo again and checks that the cache was not modified. I'm still thinking of a way to test the xml/jar path properly.
Thanks Tim. Patch released.