Skip to content

Commit 9095778

Browse files
committed
Test JRuby discovery by JSR-223 framework
1 parent 24b59da commit 9095778

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@
105105
<artifactId>junit</artifactId>
106106
<scope>test</scope>
107107
</dependency>
108+
<dependency>
109+
<groupId>org.scijava</groupId>
110+
<artifactId>scijava-common</artifactId>
111+
<classifier>tests</classifier>
112+
</dependency>
108113
</dependencies>
109114

110115
<build>

src/test/java/org/scijava/plugins/scripting/jruby/JRubyTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
import org.junit.Test;
4343
import org.scijava.Context;
44+
import org.scijava.script.AbstractScriptLanguageTest;
4445
import org.scijava.script.ScriptLanguage;
4546
import org.scijava.script.ScriptModule;
4647
import org.scijava.script.ScriptService;
@@ -50,7 +51,12 @@
5051
*
5152
* @author Johannes Schindelin
5253
*/
53-
public class JRubyTest {
54+
public class JRubyTest extends AbstractScriptLanguageTest {
55+
56+
@Test
57+
public void testDiscovery() {
58+
assertDiscovered(JRubyScriptLanguage.class);
59+
}
5460

5561
@Test
5662
public void testBasic() throws InterruptedException, ExecutionException,

0 commit comments

Comments
 (0)