Skip to content

Commit 209e2c9

Browse files
committed
CommandServiceTest: simplify CommandService call
The more complex syntax was a holdover from when there were deprecated methods polluting the API. They are gone now, so we can use the simpler varargs syntax.
1 parent 6b855f3 commit 209e2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/scijava/command/CommandServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void runClass() throws Exception {
5353
final CommandService commandService =
5454
context.getService(CommandService.class);
5555
final StringBuffer string = new StringBuffer();
56-
commandService.run(TestCommand.class, true, new Object[] {"string", string}).get(); // FIXME
56+
commandService.run(TestCommand.class, true, "string", string).get();
5757
assertEquals("Hello, World!", string.toString());
5858
}
5959

0 commit comments

Comments
 (0)