From bdd404bf6a5f840b7b1cba18910dae5b850ce2b1 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Sun, 4 Feb 2024 01:21:16 +0200 Subject: [PATCH] Fix test --- pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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());