summaryrefslogtreecommitdiffstats
path: root/pf4j/src/test
diff options
context:
space:
mode:
authorJan Høydahl <janhoy@users.noreply.github.com>2017-04-03 19:39:23 +0200
committerDecebal Suiu <decebal.suiu@gmail.com>2017-04-03 20:39:23 +0300
commitedbb541b86efd5424d5d1fa38713ec42792c88a6 (patch)
tree33532dfa8f57db300ea31e65bd7a55b4ede02e3f /pf4j/src/test
parentf4ddddc61b8643bf4e34ce65b4de9bf2d2bd6831 (diff)
downloadpf4j-edbb541b86efd5424d5d1fa38713ec42792c88a6.tar.gz
pf4j-edbb541b86efd5424d5d1fa38713ec42792c88a6.zip
The requires Expression does not print well, instead we get the className. This fix adds a `requiresString` to PluginInfo. (#137)
Diffstat (limited to 'pf4j/src/test')
-rw-r--r--pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java b/pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java
index ca62770..ddd839b 100644
--- a/pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java
+++ b/pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java
@@ -79,6 +79,7 @@ public class PropertiesPluginDescriptorFinderTest {
assertEquals("test-plugin-3", plugin1.getDependencies().get(1).getPluginId());
assertEquals("~1.0", plugin1.getDependencies().get(1).getPluginVersionSupport());
assertEquals("Apache-2.0", plugin1.getLicense());
+ assertEquals("*", plugin1.getRequiresString());
assertTrue(plugin1.getRequires().interpret(Version.valueOf("1.0.0")));
assertEquals("test-plugin-2", plugin2.getPluginId());