From 6b13884408370c3552d9c5086fbac0a3f8b10ff0 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Wed, 16 May 2018 19:36:26 +0300 Subject: [PATCH] Fix unit test --- pf4j/src/test/java/org/pf4j/LoadPluginsTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java b/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java index 0c8401b..98c33c0 100644 --- a/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java +++ b/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java @@ -35,7 +35,7 @@ public class LoadPluginsTest { private DefaultPluginManager pluginManager; @Before - public void setup() throws IOException { + public void setup() { pluginManager = new DefaultPluginManager(testFolder.getRoot().toPath()); } @@ -55,11 +55,11 @@ public class LoadPluginsTest { } @Test(expected = IllegalArgumentException.class) - public void loadNonExisting() throws Exception { + public void loadNonExisting() { pluginManager.loadPlugin(Paths.get("nonexisting")); } - @Test + @Test(expected = PluginAlreadyLoadedException.class) public void loadTwiceFails() throws Exception { PluginZip pluginZip = new PluginZip.Builder(testFolder.newFile("my-plugin-1.2.3.zip"), "myPlugin") .pluginVersion("1.2.3") @@ -113,7 +113,7 @@ public class LoadPluginsTest { } @Test - public void getRoot() throws Exception { + public void getRoot() { assertEquals(testFolder.getRoot().toPath(), pluginManager.getPluginsRoot()); } -- 2.39.5