]> source.dussan.org Git - pf4j.git/commitdiff
Improve test #520 521/head
authorDecebal Suiu <decebal.suiu@gmail.com>
Tue, 21 Mar 2023 07:58:41 +0000 (09:58 +0200)
committerDecebal Suiu <decebal.suiu@gmail.com>
Tue, 21 Mar 2023 07:58:41 +0000 (09:58 +0200)
pf4j/src/test/java/org/pf4j/LoadPluginsTest.java

index a03528ca178207f3e964932f050ddb0716ba0510..ba651cb20fb25c44c85826d0092a85d54e4c41cb 100644 (file)
@@ -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()));
     }