Convert extends ConsoleCommand { public Convert(ConsoleIO consoleIO, ConsoleState state, Map<String, ConsoleSetting> settings) { super(consoleIO, state, settings); } Convert(ConsoleIO consoleIO, ConsoleState state, Map<String, ConsoleSetting> settings); @Override String getName(); @Override String getHelpShort(); @Override String getHelpLong(); @Override String[] usesSettings(); @Override void execute(String... tokens);  }
@Test public final void testConvert() throws IOException { File json = LOCATION.newFile("alien.jsonld"); cmd.execute("convert", from.getAbsolutePath(), json.getAbsolutePath()); assertTrue("File is empty", json.length() > 0); Object o = null; try { o = JsonUtils.fromInputStream(Files.newInputStream(json.toPath())); } catch (IOException ioe) { } assertTrue("Invalid JSON", o != null); }