aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java b/pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java
index 3edb1c5..87c5e3d 100644
--- a/pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java
+++ b/pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java
@@ -199,7 +199,12 @@ public class DefaultPluginManagerTest {
.pluginDependencies("myBasePlugin")
.build();
- pluginManager.loadPlugins();
+ try {
+ pluginManager.loadPlugin(pluginZip.path());
+ } catch (DependencyResolver.DependenciesNotFoundException e) {
+ // expected
+ }
+
pluginManager.startPlugins();
PluginWrapper myPlugin = pluginManager.getPlugin(pluginZip.pluginId());