diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2019-05-13 20:37:56 +0300 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2019-05-13 20:37:56 +0300 |
commit | 3cd26fc19d3511477870ad797a9de52bf99fef0a (patch) | |
tree | 272986620d6c71959a6e2eb2cf917c2d3a731189 /pf4j/src/test | |
parent | 5a8e5eaa3edcf50e29b24ddeb027ba02ff86bf8b (diff) | |
download | pf4j-3cd26fc19d3511477870ad797a9de52bf99fef0a.tar.gz pf4j-3cd26fc19d3511477870ad797a9de52bf99fef0a.zip |
Revert commit 40846fa (Rename PluginRepository.getPluginPaths to getPluginsPaths)
Diffstat (limited to 'pf4j/src/test')
3 files changed, 17 insertions, 17 deletions
diff --git a/pf4j/src/test/java/org/pf4j/DefaultPluginRepositoryTest.java b/pf4j/src/test/java/org/pf4j/DefaultPluginRepositoryTest.java index 2237dfe..3474aa6 100644 --- a/pf4j/src/test/java/org/pf4j/DefaultPluginRepositoryTest.java +++ b/pf4j/src/test/java/org/pf4j/DefaultPluginRepositoryTest.java @@ -49,18 +49,18 @@ public class DefaultPluginRepositoryTest { } /** - * Test of {@link DefaultPluginRepository#getPluginsPaths()} method. + * Test of {@link DefaultPluginRepository#getPluginPaths()} method. */ @Test public void testGetPluginArchives() { PluginRepository repository = new DefaultPluginRepository(pluginsPath); - List<Path> pluginsPaths = repository.getPluginsPaths(); + List<Path> pluginPaths = repository.getPluginPaths(); - assertEquals(3, pluginsPaths.size()); - assertPathExists(pluginsPaths, pluginsPath.resolve("plugin-1")); - assertPathExists(pluginsPaths, pluginsPath.resolve("plugin-2")); - assertPathExists(pluginsPaths, pluginsPath.resolve("plugin-3")); + assertEquals(3, pluginPaths.size()); + assertPathExists(pluginPaths, pluginsPath.resolve("plugin-1")); + assertPathExists(pluginPaths, pluginsPath.resolve("plugin-2")); + assertPathExists(pluginPaths, pluginsPath.resolve("plugin-3")); } /** @@ -76,10 +76,10 @@ public class DefaultPluginRepositoryTest { assertTrue(repository.deletePluginPath(pluginsPath.resolve("plugin-3"))); assertFalse(repository.deletePluginPath(pluginsPath.resolve("plugin-4"))); - List<Path> pluginsPaths = repository.getPluginsPaths(); + List<Path> pluginPaths = repository.getPluginPaths(); - assertEquals(1, pluginsPaths.size()); - assertEquals(pluginsPath.relativize(pluginsPaths.get(0)).toString(), "plugin-2"); + assertEquals(1, pluginPaths.size()); + assertEquals(pluginsPath.relativize(pluginPaths.get(0)).toString(), "plugin-2"); } private void assertPathExists(List<Path> paths, Path path) { diff --git a/pf4j/src/test/java/org/pf4j/DevelopmentPluginRepositoryTest.java b/pf4j/src/test/java/org/pf4j/DevelopmentPluginRepositoryTest.java index 9e4c8da..20d9129 100644 --- a/pf4j/src/test/java/org/pf4j/DevelopmentPluginRepositoryTest.java +++ b/pf4j/src/test/java/org/pf4j/DevelopmentPluginRepositoryTest.java @@ -46,12 +46,12 @@ public class DevelopmentPluginRepositoryTest { public void testGetPluginArchivesInDevelopmentMode() { PluginRepository repository = new DevelopmentPluginRepository(pluginsPath); - List<Path> pluginsPaths = repository.getPluginsPaths(); + List<Path> pluginPaths = repository.getPluginPaths(); // target and build should be ignored - assertEquals(0, pluginsPaths.size()); - assertPathDoesNotExists(pluginsPaths, pluginsPath.resolve(DevelopmentPluginRepository.MAVEN_BUILD_DIR)); - assertPathDoesNotExists(pluginsPaths, pluginsPath.resolve(DevelopmentPluginRepository.GRADLE_BUILD_DIR)); + assertEquals(0, pluginPaths.size()); + assertPathDoesNotExists(pluginPaths, pluginsPath.resolve(DevelopmentPluginRepository.MAVEN_BUILD_DIR)); + assertPathDoesNotExists(pluginPaths, pluginsPath.resolve(DevelopmentPluginRepository.GRADLE_BUILD_DIR)); } private void assertPathDoesNotExists(List<Path> paths, Path path) { diff --git a/pf4j/src/test/java/org/pf4j/JarPluginRepositoryTest.java b/pf4j/src/test/java/org/pf4j/JarPluginRepositoryTest.java index 02d2bcc..4501223 100644 --- a/pf4j/src/test/java/org/pf4j/JarPluginRepositoryTest.java +++ b/pf4j/src/test/java/org/pf4j/JarPluginRepositoryTest.java @@ -46,13 +46,13 @@ public class JarPluginRepositoryTest { assertFalse(repository.deletePluginPath(plugin1Path)); - List<Path> pluginsPaths = repository.getPluginsPaths(); - assertEquals(1, pluginsPaths.size()); + List<Path> pluginPaths = repository.getPluginPaths(); + assertEquals(1, pluginPaths.size()); assertTrue(repository.deletePluginPath(plugin1JarPath)); - pluginsPaths = repository.getPluginsPaths(); - assertEquals(0, pluginsPaths.size()); + pluginPaths = repository.getPluginPaths(); + assertEquals(0, pluginPaths.size()); } } |