1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: pf4j now has a dedicated Exception for plugins that are not found
Author: Pierre Gruet <pgt@debian.org>
Bug-Debian: https://bugs.debian.org/1084288
Forwarded: https://github.com/pf4j/pf4j-update/issues/65
Last-Update: 2024-10-08
--- a/src/test/java/org/pf4j/update/InstallAndDownloadTest.java
+++ b/src/test/java/org/pf4j/update/InstallAndDownloadTest.java
@@ -20,6 +20,7 @@
import org.junit.Before;
import org.junit.Test;
import org.pf4j.PluginManager;
+import org.pf4j.PluginNotFoundException;
import org.pf4j.PluginRuntimeException;
import org.pf4j.PluginWrapper;
import org.pf4j.TestPluginDescriptor;
@@ -165,7 +166,7 @@
assertFalse(updateManager.updatePlugin("myPlugin", null)); // Update to latest
}
- @Test(expected = IllegalArgumentException.class)
+ @Test(expected = PluginNotFoundException.class)
public void uninstallNonExisting() {
updateManager.uninstallPlugin("other");
}
|