Skip to content

Commit 225b419

Browse files
committed
ScriptFinderTest: verify scripts on the classpath
This tests that scripts present on the classpath, but not any of the directories explicitly given by ScriptService#getScriptDirectories(), are still found.
1 parent ff73f88 commit 225b419

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/test/java/org/scijava/script/ScriptFinderTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public void testFindScripts() {
107107
"Math > divide", //
108108
"Scripts > fox", //
109109
"Math > multiply", //
110+
"Math > pow", //
110111
"Scripts > quick", //
111112
"Math > Trig > sin", //
112113
"Math > subtract", //
@@ -140,6 +141,7 @@ public void testMenuPrefixes() {
140141
"Foo > Bar > Scripts > fox", //
141142
"Foo > Bar > ignored", //
142143
"Foo > Bar > Math > multiply", //
144+
"Math > pow", //
143145
"Foo > Bar > Scripts > quick", //
144146
"Foo > Bar > Math > Trig > sin", //
145147
"Foo > Bar > Math > subtract", //
@@ -172,6 +174,7 @@ public void testOverlappingDirectories() {
172174
"Math > divide", //
173175
"Plugins > fox", //
174176
"Math > multiply", //
177+
"Math > pow", //
175178
"Plugins > quick", //
176179
"Math > Trig > sin", //
177180
"Math > subtract", //
2.01 KB
Binary file not shown.

0 commit comments

Comments
 (0)