test_class.file: rest-lib-utils/src/test/java/org/eclipse/steady/cia/dependencyfinder/JarDiffCmdTest.java
test_class.identifier: JarDiffCmdTest
test_case.body: @Test
    public void testDoProcessing() {
      Artifact old_doc = new Artifact("commons-fileupload", "commons-fileupload", "1.1.1");
  
      Artifact new_doc = new Artifact("commons-fileupload", "commons-fileupload", "1.3.1");
  
      Path old_jar = Paths.get("./src/test/resources/commons-fileupload-1.1.1.jar");
      Path new_jar = Paths.get("./src/test/resources/commons-fileupload-1.3.1.jar");
  
      JarDiffCmd cmd = new JarDiffCmd(old_doc, old_jar, new_doc, new_jar);
  
      try {
        final String[] args =
            new String[] {
              "-old", old_jar.toString(), "-new", new_jar.toString(), "-name", "xyz", "-code"
            };
        cmd.run(args);
      } catch (Exception e) {
        e.printStackTrace();
      }
  
      JarDiffResult result = cmd.getResult();
  
      String json = JacksonUtil.asJsonString(result);
      System.out.println(json);
      assertTrue(result != null);
    }
test_case.class_method_signature: JarDiffCmdTest.testDoProcessing()
test_case.full_signature: @Test public void testDoProcessing()
test_case.identifier: testDoProcessing
test_case.invocations: get get toString toString run printStackTrace getResult asJsonString println assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDoProcessing()
focal_class.declarator: oldLib
focal_class.modifier: private
focal_class.original_string: private Artifact oldLib, newLib;
focal_class.type: Artifact
focal_class.var_name: oldLib
focal_class.declarator: oldPath
focal_class.modifier: private
focal_class.original_string: private Path oldPath, newPath;
focal_class.type: Path
focal_class.var_name: oldPath
focal_class.declarator: visitor
focal_class.modifier: private
focal_class.original_string: private JarDiffVisitor visitor;
focal_class.type: JarDiffVisitor
focal_class.var_name: visitor
focal_class.file: rest-lib-utils/src/main/java/org/eclipse/steady/cia/dependencyfinder/JarDiffCmd.java
focal_class.identifier: JarDiffCmd
focal_class.class_method_signature: JarDiffCmd.JarDiffCmd(Artifact _old, Path _old_path, Artifact _new, Path _new_path)
focal_class.full_signature: public  JarDiffCmd(Artifact _old, Path _old_path, Artifact _new, Path _new_path)
focal_class.identifier: JarDiffCmd
focal_class.modifiers: public
focal_class.parameters: (Artifact _old, Path _old_path, Artifact _new, Path _new_path)
focal_class.signature:  JarDiffCmd(Artifact _old, Path _old_path, Artifact _new, Path _new_path)
focal_class.class_method_signature: JarDiffCmd.doProcessing()
focal_class.full_signature: protected void doProcessing()
focal_class.identifier: doProcessing
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void doProcessing()
focal_class.class_method_signature: JarDiffCmd.getResult()
focal_class.full_signature: public JarDiffResult getResult()
focal_class.identifier: getResult
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: JarDiffResult
focal_class.signature: JarDiffResult getResult()
focal_class.superclass: extends DiffCommand
focal_method.body: protected void doProcessing() throws Exception {
      // Old JAR
      PackageMapper oldPackages = new PackageMapper();
      ClassfileLoader oldJar = new AggregatingClassfileLoader();
      oldJar.addLoadListener(oldPackages);
      List<String> old_files = new ArrayList<String>();
      old_files.add(this.oldPath.toString());
      oldJar.load(old_files);
  
      // New JAR
      PackageMapper newPackages = new PackageMapper();
      ClassfileLoader newJar = new AggregatingClassfileLoader();
      newJar.addLoadListener(newPackages);
      List<String> new_files = new ArrayList<String>();
      new_files.add(this.newPath.toString());
      newJar.load(new_files);
  
      String name = this.oldLib.getLibId().getMvnGroup() + ":" + this.oldLib.getLibId().getArtifact();
      String oldLabel = name + ":" + oldLib.getLibId().getVersion();
      String newLabel = name + ":" + newLib.getLibId().getVersion();
  
      Differences differences =
          getDifferencesFactory()
              .createProjectDifferences(name, oldLabel, oldPackages, newLabel, newPackages);
  
      // Report report = new Report(getCommandLine().getSingleSwitch("encoding"),
      // getCommandLine().getSingleSwitch("dtd-prefix"));
      visitor = new JarDiffVisitor(this.oldLib, this.newLib);
  
      differences.accept(visitor);
    }
focal_method.class_method_signature: JarDiffCmd.doProcessing()
focal_method.full_signature: protected void doProcessing()
focal_method.identifier: doProcessing
focal_method.invocations: addLoadListener add toString load addLoadListener add toString load getMvnGroup getLibId getArtifact getLibId getVersion getLibId getVersion getLibId createProjectDifferences getDifferencesFactory accept
focal_method.modifiers: protected
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void doProcessing()