]> source.dussan.org Git - pf4j.git/commitdiff
Fix test
authorDecebal Suiu <decebal.suiu@gmail.com>
Sat, 3 Feb 2024 23:21:16 +0000 (01:21 +0200)
committerDecebal Suiu <decebal.suiu@gmail.com>
Sat, 3 Feb 2024 23:21:16 +0000 (01:21 +0200)
pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java

index 3edb1c50240c05f2c6ef01afd68ebd31afad812b..87c5e3dbac8434faf06e2fa5b501371bdce53477 100644 (file)
@@ -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());