imagej / imagej-updater

The automatic updater for ImageJ
Other
12 stars 15 forks source link

Make an integration test for the UpdateService #37

Open ctrueden opened 10 years ago

ctrueden commented 10 years ago

The UpdateService now has a getUpdateSite method which returns the UpdateSite object corresponding to the given file. But currently it relies on the directory structure being that of a deployed ImageJ application (i.e.: jars/ and plugins/ folders, etc.), so writing an automated test for it becomes very tricky. However, we may be able to use a similar approach to what's in the CommandLineUpdaterTest: build our own self-contained set of update sites and test using those.