- public void callbackPrioritiesAreInteractive() {
- freenetInterface.registerUsk(sone, null);
- assertThat(callbackCaptor.getValue().getPollingPriorityNormal(), is(INTERACTIVE_PRIORITY_CLASS));
- assertThat(callbackCaptor.getValue().getPollingPriorityProgress(), is(INTERACTIVE_PRIORITY_CLASS));
- }
-
- @Test
- public void callbackForRegisteredSoneWithHigherEditionTriggersDownload() throws InterruptedException {
- freenetInterface.registerUsk(sone, soneUpdater);
- callbackCaptor.getValue().onFoundEdition(1, null, null, null, false, (short) 0, null, false, false);
- verify(soneUpdater).updateSone(1);
- }
-
- @Test