cancel installation on pending plugins

This commit is contained in:
Eduard Heimbuch
2019-09-28 11:44:39 +02:00
parent e1dd393cce
commit 333579ef2a
6 changed files with 17 additions and 10 deletions

View File

@@ -487,7 +487,7 @@ class DefaultPluginManagerTest {
when(center.getAvailable()).thenReturn(ImmutableSet.of(newMailPlugin, newReviewPlugin));
manager.updateAll(false);
manager.updateAll();
verify(installer).install(newMailPlugin);
verify(installer).install(newReviewPlugin);
@@ -503,7 +503,7 @@ class DefaultPluginManagerTest {
when(center.getAvailable()).thenReturn(ImmutableSet.of(oldScriptPlugin));
manager.updateAll(false);
manager.updateAll();
verify(installer, never()).install(oldScriptPlugin);
}
@@ -569,7 +569,7 @@ class DefaultPluginManagerTest {
@Test
void shouldThrowAuthorizationExceptionsForUpdateAll() {
assertThrows(AuthorizationException.class, () -> manager.updateAll(false));
assertThrows(AuthorizationException.class, () -> manager.updateAll());
}
}
}