test_class.file: app-dependency/src/test/java/com/kdgregory/pomutil/dependency/TestDependencyScanner.java
test_class.identifier: TestDependencyScanner
test_case.body: @Test
      public void testGetDependencies() throws Exception
      {
          File pomFile = new File("../test-dependency/pom.xml");
          assertTrue("able to access POM", pomFile.exists());
  
          DependencyScanner scanner = new DependencyScanner(pomFile);
  
          Map<String,Scope> allDependencies = mapArtifacts(scanner.getDependencies());
          assertEquals("count of dependencies, general select",           7, allDependencies.size());
          assertEquals("compile-scope dependency, general select",        Scope.COMPILE, allDependencies.get("commons-io"));
          assertEquals("test-scope dependency, general select",           Scope.TEST,    allDependencies.get("junit"));
          assertNull("transitive dependency, general select",             allDependencies.get("bcel"));
  
          Map<String,Scope> allDependencies2 = mapArtifacts(scanner.getDependencies(Scope.COMPILE, Scope.TEST));
          assertEquals("count of dependencies, scope select",             6, allDependencies2.size());
          assertEquals("compile-scope dependency, scope select",          Scope.COMPILE, allDependencies2.get("commons-io"));
          assertEquals("test-scope dependency, scope select",             Scope.TEST,    allDependencies2.get("junit"));
          assertNull("transitive dependency, scope select",               allDependencies2.get("bcel"));
  
          Map<String,Scope> compileDependencies = mapArtifacts(scanner.getDependencies(Scope.COMPILE));
  
          assertEquals("compile-scope select returned expected count",    3, compileDependencies.size());
          assertTrue("compile-scope select returned expected artifact",   compileDependencies.containsKey("commons-io"));
          assertFalse("compile-scope select returned test artifact",      compileDependencies.containsKey("junit"));
  
          Map<String,Scope> testDependencies = mapArtifacts(scanner.getDependencies(Scope.TEST));
  
          assertEquals("compile-scope select returned expected count",    3, testDependencies.size());
          assertTrue("compile-scope select returned expected artifact",   testDependencies.containsKey("junit"));
          assertFalse("compile-scope select returned compile artifact",   testDependencies.containsKey("commons-io"));
      }
test_case.class_method_signature: TestDependencyScanner.testGetDependencies()
test_case.full_signature: @Test public void testGetDependencies()
test_case.identifier: testGetDependencies
test_case.invocations: assertTrue exists mapArtifacts getDependencies assertEquals size assertEquals get assertEquals get assertNull get mapArtifacts getDependencies assertEquals size assertEquals get assertEquals get assertNull get mapArtifacts getDependencies assertEquals size assertTrue containsKey assertFalse containsKey mapArtifacts getDependencies assertEquals size assertTrue containsKey assertFalse containsKey
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetDependencies()
focal_class.declarator: logger = LoggerFactory.getLogger(getClass())
focal_class.modifier: private
focal_class.original_string: private Logger logger = LoggerFactory.getLogger(getClass());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: repo
focal_class.modifier: private
focal_class.original_string: private LocalRepository repo;
focal_class.type: LocalRepository
focal_class.var_name: repo
focal_class.declarator: pom
focal_class.modifier: private
focal_class.original_string: private ResolvedPom pom;
focal_class.type: ResolvedPom
focal_class.var_name: pom
focal_class.declarator: dependencies = new TreeSet<Artifact>()
focal_class.modifier: private
focal_class.original_string: private Set<Artifact> dependencies = new TreeSet<Artifact>();
focal_class.type: Set<Artifact>
focal_class.var_name: dependencies
focal_class.declarator: dependencyLookup = new HashMap<String,Artifact>()
focal_class.modifier: private
focal_class.original_string: private Map<String,Artifact> dependencyLookup = new HashMap<String,Artifact>();
focal_class.type: Map<String,Artifact>
focal_class.var_name: dependencyLookup
focal_class.file: app-dependency/src/main/java/com/kdgregory/pomutil/dependency/DependencyScanner.java
focal_class.identifier: DependencyScanner
focal_class.class_method_signature: DependencyScanner.DependencyScanner(File pomFile)
focal_class.full_signature: public  DependencyScanner(File pomFile)
focal_class.identifier: DependencyScanner
focal_class.modifiers: public
focal_class.parameters: (File pomFile)
focal_class.signature:  DependencyScanner(File pomFile)
focal_class.class_method_signature: DependencyScanner.getDependencies()
focal_class.full_signature: public Collection<Artifact> getDependencies()
focal_class.identifier: getDependencies
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection<Artifact>
focal_class.signature: Collection<Artifact> getDependencies()
focal_class.class_method_signature: DependencyScanner.getDependencies(Scope... scopes)
focal_class.full_signature: public Collection<Artifact> getDependencies(Scope... scopes)
focal_class.identifier: getDependencies
focal_class.modifiers: public
focal_class.parameters: (Scope... scopes)
focal_class.return: Collection<Artifact>
focal_class.signature: Collection<Artifact> getDependencies(Scope... scopes)
focal_class.class_method_signature: DependencyScanner.getDependency(String className, Scope scope)
focal_class.full_signature: public Artifact getDependency(String className, Scope scope)
focal_class.identifier: getDependency
focal_class.modifiers: public
focal_class.parameters: (String className, Scope scope)
focal_class.return: Artifact
focal_class.signature: Artifact getDependency(String className, Scope scope)
focal_class.class_method_signature: DependencyScanner.buildDependencyLookup()
focal_class.full_signature: private void buildDependencyLookup()
focal_class.identifier: buildDependencyLookup
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void buildDependencyLookup()
focal_method.body: public Collection<Artifact> getDependencies()
      {
          return dependencies;
      }
focal_method.class_method_signature: DependencyScanner.getDependencies()
focal_method.full_signature: public Collection<Artifact> getDependencies()
focal_method.identifier: getDependencies
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Collection<Artifact>
focal_method.signature: Collection<Artifact> getDependencies()