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.
The
UpdateService
now has agetUpdateSite
method which returns theUpdateSite
object corresponding to the given file. But currently it relies on the directory structure being that of a deployed ImageJ application (i.e.:jars/
andplugins/
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 theCommandLineUpdaterTest
: build our own self-contained set of update sites and test using those.