test_class.file: app-cleaner/src/test/java/com/kdgregory/pomutil/cleaner/transform/TestSortDependencies.java
test_class.identifier: TestSortDependencies
test_class.superclass: extends AbstractTransformerTest
test_case.body: @Test
      public void testGroupByScope() throws Exception
      {
          CommandLine args = new CommandLine("--groupDependenciesByScope");
          new SortDependencies(loadPom("cleaner/DependencySort2.xml"), args).transform();
  
          List<Element> dependencies = newXPath("/mvn:project/mvn:dependencies/*").evaluate(dom(), Element.class);
          assertEquals("number of dependencies in <dependencies>", 6, dependencies.size());
          assertDependencySpec("dependencies(0)", dependencies.get(0), "commons-io",      "commons-io",       "2.4");
          assertDependencySpec("dependencies(1)", dependencies.get(1), "commons-lang",    "commons-lang",     "2.3");
          assertDependencySpec("dependencies(2)", dependencies.get(2), "org.slf4j",       "slf4j-log4j12",    "1.6.6");
          assertDependencySpec("dependencies(3)", dependencies.get(3), "junit",           "junit",            "4.10");
          assertDependencySpec("dependencies(4)", dependencies.get(4), "javax.sql",       "jdbc-stdext",      "2.0");
          assertDependencySpec("dependencies(5)", dependencies.get(5), "commons-logging", "commons-logging",  "1.1");
      }
test_case.class_method_signature: TestSortDependencies.testGroupByScope()
test_case.full_signature: @Test public void testGroupByScope()
test_case.identifier: testGroupByScope
test_case.invocations: transform loadPom evaluate newXPath dom assertEquals size assertDependencySpec get assertDependencySpec get assertDependencySpec get assertDependencySpec get assertDependencySpec get assertDependencySpec get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGroupByScope()
focal_class.declarator: logger = LoggerFactory.getLogger(getClass())
focal_class.original_string: Logger logger = LoggerFactory.getLogger(getClass());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: disabled
focal_class.modifier: private
focal_class.original_string: private boolean disabled;
focal_class.type: boolean
focal_class.var_name: disabled
focal_class.declarator: orderbyScope
focal_class.modifier: private
focal_class.original_string: private boolean orderbyScope;
focal_class.type: boolean
focal_class.var_name: orderbyScope
focal_class.file: app-cleaner/src/main/java/com/kdgregory/pomutil/cleaner/transform/SortDependencies.java
focal_class.identifier: SortDependencies
focal_class.class_method_signature: SortDependencies.SortDependencies(PomWrapper pom, CommandLine args)
focal_class.full_signature: public  SortDependencies(PomWrapper pom, CommandLine args)
focal_class.identifier: SortDependencies
focal_class.modifiers: public
focal_class.parameters: (PomWrapper pom, CommandLine args)
focal_class.signature:  SortDependencies(PomWrapper pom, CommandLine args)
focal_class.class_method_signature: SortDependencies.SortDependencies(PomWrapper pom)
focal_class.full_signature: public  SortDependencies(PomWrapper pom)
focal_class.identifier: SortDependencies
focal_class.modifiers: public
focal_class.parameters: (PomWrapper pom)
focal_class.signature:  SortDependencies(PomWrapper pom)
focal_class.class_method_signature: SortDependencies.transform()
focal_class.full_signature: @Override public void transform()
focal_class.identifier: transform
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void transform()
focal_class.class_method_signature: SortDependencies.processGroup(String selectionPath)
focal_class.full_signature: private void processGroup(String selectionPath)
focal_class.identifier: processGroup
focal_class.modifiers: private
focal_class.parameters: (String selectionPath)
focal_class.return: void
focal_class.signature: void processGroup(String selectionPath)
focal_class.superclass: extends AbstractTransformer
focal_method.body: @Override
      public void transform()
      {
          if (disabled)
              return;
  
          logger.info("sorting dependencies");
          processGroup(PomPaths.PROJECT_DEPENDENCIES);
          processGroup(PomPaths.MANAGED_DEPENDENCIES);
      }
focal_method.class_method_signature: SortDependencies.transform()
focal_method.full_signature: @Override public void transform()
focal_method.identifier: transform
focal_method.invocations: info processGroup processGroup
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void transform()