aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2023-03-21 09:58:41 +0200
committerDecebal Suiu <decebal.suiu@gmail.com>2023-03-21 09:58:41 +0200
commit2b4185c42e159569bea9495f0888ad8f88a8a5de (patch)
tree6c3ca856757e4224fae24e9e6dad7cb02c57e694
parentaa0a89a931511913b291089f9d1a7cfa6a14b742 (diff)
downloadpf4j-#520.tar.gz
pf4j-#520.zip
Improve test#520
-rw-r--r--pf4j/src/test/java/org/pf4j/LoadPluginsTest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java b/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java
index a03528c..ba651cb 100644
--- a/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java
+++ b/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java
@@ -161,10 +161,13 @@ public class LoadPluginsTest {
assertEquals(1, pluginManager.getPlugins().size());
assertTrue(pluginManager.unloadPlugin(pluginId));
- // duplicate check
+ assertEquals(0, pluginManager.getPlugins().size());
assertNull(pluginManager.idForPath(pluginZip.unzippedPath()));
- // Double unload ok
+
+ // double unload ok
assertThrows(IllegalArgumentException.class, () -> pluginManager.unloadPlugin(pluginId), "Unknown pluginId " + pluginId);
+
+ // load plugin again
assertNotNull(pluginManager.loadPlugin(pluginZip.unzippedPath()));
}