aboutsummaryrefslogtreecommitdiffstats
path: root/pf4j
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2024-02-04 01:21:16 +0200
committerDecebal Suiu <decebal.suiu@gmail.com>2024-02-04 01:21:16 +0200
commitbdd404bf6a5f840b7b1cba18910dae5b850ce2b1 (patch)
treec1e927c4d69f9e53ec26d79df42986efdd5b18a7 /pf4j
parent62b6162ec2521be27566ad2d294353524ad9b2cc (diff)
downloadpf4j-bdd404bf6a5f840b7b1cba18910dae5b850ce2b1.tar.gz
pf4j-bdd404bf6a5f840b7b1cba18910dae5b850ce2b1.zip
Fix test
Diffstat (limited to 'pf4j')
-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());