Skip to content

Commit f739b4a

Browse files
committed
JythonTest: fix warnings
1 parent bc570da commit f739b4a

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

src/test/java/org/scijava/plugins/scripting/jython/JythonTest.java

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import static org.junit.Assert.assertSame;
3737
import static org.junit.Assert.assertTrue;
3838

39-
import java.io.IOException;
4039
import java.math.BigInteger;
4140
import java.util.concurrent.ExecutionException;
4241

@@ -76,12 +75,10 @@ public void tearDown() {
7675
}
7776

7877
@Test
79-
public void testBasic() throws InterruptedException, ExecutionException,
80-
IOException, ScriptException
81-
{
78+
public void testBasic() throws InterruptedException, ExecutionException {
8279
final String script = "1 + 2";
8380
final ScriptModule m = scriptService.run("add.py", script, true).get();
84-
final Object result = m.getLanguage().decode(m.getReturnValue());
81+
final Object result = m.getInfo().getLanguage().decode(m.getReturnValue());
8582
assertSame(Integer.class, result.getClass());
8683
assertEquals(3, result);
8784
}
@@ -101,9 +98,7 @@ public void testLocals() throws ScriptException {
10198
}
10299

103100
@Test
104-
public void testParameters() throws InterruptedException, ExecutionException,
105-
IOException, ScriptException
106-
{
101+
public void testParameters() throws InterruptedException, ExecutionException {
107102
final String script = "" + //
108103
"#@ ScriptService ss\n" + //
109104
"#@output String language\n" + //
@@ -137,9 +132,7 @@ public void testParameters() throws InterruptedException, ExecutionException,
137132
* </p>
138133
*/
139134
@Test
140-
public void testLongType() throws InterruptedException, ExecutionException,
141-
IOException, ScriptException
142-
{
135+
public void testLongType() throws InterruptedException, ExecutionException {
143136
final String script = "" + //
144137
"#@output String varType\n" + //
145138
"a = 10L\n" + //
@@ -170,9 +163,7 @@ public void testEval() throws ScriptException {
170163
}
171164

172165
@Test
173-
public void testGetPID() throws InterruptedException, ExecutionException,
174-
IOException, ScriptException
175-
{
166+
public void testGetPID() throws InterruptedException, ExecutionException {
176167
final String script = "" + //
177168
"#@output Object pid\n" + //
178169
"import os\n" + //

0 commit comments

Comments
 (0)