154155156157158159160161162163164
train_getPath(r, PATH); train_toURL(r, url); train_requiresDigest(generator, PATH, true); train_generateChecksum(generator, url, expectedDigest); listener.objectWasInvalidated(); replay(); cache.checkForUpdates();
172173174175176177178179180181182
// Now, change the file and processInbound an UpdateEvent. touch(f); listener.objectWasInvalidated(); replay(); // Check for updates (which will be found). source.checkForUpdates();
173174175176177178179180181182183
train_getPath(r, PATH); train_toURL(r, url); train_requiresDigest(generator, PATH, true); train_generateChecksum(generator, url, expectedDigest); listener.objectWasInvalidated(); replay(); getService(UpdateListenerHub.class).fireCheckForUpdates();
151152153154155156157158159160161
159160161162163164165166167168169
// Now, change the file and process an UpdateEvent. touch(f); listener.objectWasInvalidated(); replay(); // Check for updates (which will be found). source.checkForUpdates();
158159160161162163164165166167168
168169170171172173174175176177178