Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 218447 - [prov] Tests for local caching of metadata repositories
Summary: [prov] Tests for local caching of metadata repositories
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Incubator (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Tim Mok CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-10 10:44 EST by John Arthorne CLA
Modified: 2008-02-13 17:53 EST (History)
0 users

See Also:


Attachments
Metadata Caching Tests v01 (4.10 KB, patch)
2008-02-13 13:26 EST, Tim Mok CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2008-02-10 10:44:47 EST
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.
Comment 1 Tim Mok CLA 2008-02-13 13:26:22 EST
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.
Comment 2 John Arthorne CLA 2008-02-13 17:53:45 EST
Thanks Tim. Patch released.