Skip to content

Commit

Permalink
Updated ListPluginsCommandTests
Browse files Browse the repository at this point in the history
Signed-off-by: Abhilasha Seth <[email protected]>
  • Loading branch information
abseth-amzn committed Nov 28, 2023
1 parent f6d1dbe commit f953b1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ public void testPluginWithVerbose() throws Exception {
"Native Controller: false",
"Extended Plugins: []",
" * Classname: org.fake",
"Folder name: custom-folder"
"Folder name: custom-folder",
"SemVer Range Compatible: false"
),
terminal.getOutput()
);
Expand All @@ -195,7 +196,8 @@ public void testPluginWithNativeController() throws Exception {
"Native Controller: true",
"Extended Plugins: []",
" * Classname: org.fake",
"Folder name: custom-folder"
"Folder name: custom-folder",
"SemVer Range Compatible: false"
),
terminal.getOutput()
);
Expand All @@ -220,6 +222,7 @@ public void testPluginWithVerboseMultiplePlugins() throws Exception {
"Extended Plugins: []",
" * Classname: org.fake",
"Folder name: custom-folder",
"SemVer Range Compatible: false",
"fake_plugin2",
"- Plugin information:",
"Name: fake_plugin2",
Expand All @@ -230,7 +233,8 @@ public void testPluginWithVerboseMultiplePlugins() throws Exception {
"Native Controller: false",
"Extended Plugins: []",
" * Classname: org.fake2",
"Folder name: custom-folder"
"Folder name: custom-folder",
"SemVer Range Compatible: false"
),
terminal.getOutput()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ public static PluginInfo readFromProperties(final Path path) throws IOException

final String isSemVerRangeCompatibleValue = propsMap.remove("is.semVer.range.compatible");
final boolean isSemVerRangeCompatible = getBooleanProperty("is.semVer.range.compatible", isSemVerRangeCompatibleValue, false);
;

if (propsMap.isEmpty() == false) {
throw new IllegalArgumentException("Unknown properties in plugin descriptor: " + propsMap.keySet());
Expand Down

0 comments on commit f953b1e

Please sign in to comment.