diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2019-03-12 20:28:47 +0200 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2019-03-12 20:28:47 +0200 |
commit | 4eeaf8ab558da4a6974e4cb5deccc57c32d620f9 (patch) | |
tree | 071647b703a1b645a5b54cbf3557016a20484505 /pf4j/src/test | |
parent | 6dd7a6069f0e2fbd842c81e2c8c388918b88ea81 (diff) | |
download | pf4j-4eeaf8ab558da4a6974e4cb5deccc57c32d620f9.tar.gz pf4j-4eeaf8ab558da4a6974e4cb5deccc57c32d620f9.zip |
Resolve #294#294
Diffstat (limited to 'pf4j/src/test')
-rw-r--r-- | pf4j/src/test/java/org/pf4j/LoadPluginsTest.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java b/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java index c2917e8..46980bc 100644 --- a/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java +++ b/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java @@ -45,7 +45,19 @@ public class LoadPluginsTest { @Before public void setUp() { - pluginManager = new DefaultPluginManager(pluginsFolder.getRoot().toPath()); + pluginManager = new DefaultPluginManager(pluginsFolder.getRoot().toPath()) { + + @Override + protected PluginRepository createPluginRepository() { + return new DefaultPluginRepository(getPluginsRoot(), isDevelopment()); + } + + @Override + protected PluginLoader createPluginLoader() { + return new DefaultPluginLoader(this, pluginClasspath); + } + + }; } @Test |