@Test public void doNotUpdateWhenDateNotChanged() throws Exception { when(assetManager.maybeUpdateLastDownloaded(asset)).thenReturn(false); verifyNoExceptionThrownAndSaveNotCalled(); }
protected void maybeUpdateLastDownloaded(final AttributesMap attributes) { maybeUpdateLastDownloaded(attributes.get(Asset.class)); }
LastDownloadedHandler extends ComponentSupport implements org.sonatype.nexus.repository.view.handlers.LastDownloadedHandler { protected void maybeUpdateLastDownloaded(final AttributesMap attributes) { maybeUpdateLastDownloaded(attributes.get(Asset.class)); } }
LastDownloadedHandler extends ComponentSupport implements org.sonatype.nexus.repository.view.handlers.LastDownloadedHandler { protected void maybeUpdateLastDownloaded(final AttributesMap attributes) { maybeUpdateLastDownloaded(attributes.get(Asset.class)); } @Inject  LastDownloadedHandler(final AssetManager assetManager); }
LastDownloadedHandler extends ComponentSupport implements org.sonatype.nexus.repository.view.handlers.LastDownloadedHandler { protected void maybeUpdateLastDownloaded(final AttributesMap attributes) { maybeUpdateLastDownloaded(attributes.get(Asset.class)); } @Inject  LastDownloadedHandler(final AssetManager assetManager); @Override Response handle(final Context context); }
LastDownloadedHandler extends ComponentSupport implements org.sonatype.nexus.repository.view.handlers.LastDownloadedHandler { protected void maybeUpdateLastDownloaded(final AttributesMap attributes) { maybeUpdateLastDownloaded(attributes.get(Asset.class)); } @Inject  LastDownloadedHandler(final AssetManager assetManager); @Override Response handle(final Context context);  }