test_class.declarator: testOutBaseDir = new File("target/test-out/ScanManyArtifactsMojoTest")
test_class.modifier: private final
test_class.original_string: private final File testOutBaseDir = new File("target/test-out/ScanManyArtifactsMojoTest");
test_class.type: File
test_class.var_name: testOutBaseDir
test_class.file: maven/src/test/java/net/adamcin/oakpal/maven/mojo/ScanManyArtifactsMojoTest.java
test_class.identifier: ScanManyArtifactsMojoTest
test_case.body: @Test
      public void testListScanFiles() throws Exception {
          final File testOutDir = new File(testOutBaseDir, "testListScanFiles");
          FileUtils.deleteDirectory(testOutDir);
          testOutDir.mkdirs();
          ScanManyArtifactsMojo mojo = newMojo();
          assertTrue("empty by default", mojo.listScanFiles().isEmpty());
  
          final File artifactFile = new File(testOutDir, "scan-artifact-file.zip");
          FileUtils.touch(artifactFile);
          final File fileFile = new File(testOutDir, "scan-file-file.zip");
          FileUtils.touch(fileFile);
  
          final Dependency dependency = new DependencyFilter()
                  .withGroupId("com.example")
                  .withArtifactId("scan-artifact-file")
                  .withVersion("1.0-SNAPSHOT")
                  .withType("zip")
                  .toDependency();
          mojo.scanArtifacts = Collections.singletonList(dependency);
  
          mojo.scanFiles = Collections.singletonList(fileFile);
  
          final MavenSession session = mock(MavenSession.class);
          mojo.session = session;
          final MavenExecutionRequest executionRequest = mock(MavenExecutionRequest.class);
          when(session.getRequest()).thenReturn(executionRequest);
          final RepositorySystem repositorySystem = mock(RepositorySystem.class);
          mojo.repositorySystem = repositorySystem;
  
          final Artifact scanArtifact = mock(Artifact.class);
          when(scanArtifact.getFile()).thenReturn(artifactFile);
          when(repositorySystem.createDependencyArtifact(dependency)).thenReturn(scanArtifact);
  
          final List<File> scanFiles = mojo.listScanFiles();
          assertEquals("expect files", Arrays.asList(artifactFile, fileFile), scanFiles);
      }
test_case.class_method_signature: ScanManyArtifactsMojoTest.testListScanFiles()
test_case.full_signature: @Test public void testListScanFiles()
test_case.identifier: testListScanFiles
test_case.invocations: deleteDirectory mkdirs newMojo assertTrue isEmpty listScanFiles touch touch toDependency withType withVersion withArtifactId withGroupId singletonList singletonList mock mock thenReturn when getRequest mock mock thenReturn when getFile thenReturn when createDependencyArtifact listScanFiles assertEquals asList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testListScanFiles()
focal_class.declarator: skip
focal_class.modifier: @Parameter(property = "oakpal.scan-many.skip")
focal_class.original_string: @Parameter(property = "oakpal.scan-many.skip")
      boolean skip;
focal_class.type: boolean
focal_class.var_name: skip
focal_class.declarator: scanArtifacts = new ArrayList<>()
focal_class.modifier: @Parameter(name = "scanArtifacts")
focal_class.original_string: @Parameter(name = "scanArtifacts")
      List<Dependency> scanArtifacts = new ArrayList<>();
focal_class.type: List<Dependency>
focal_class.var_name: scanArtifacts
focal_class.declarator: scanFiles = new ArrayList<>()
focal_class.modifier: @Parameter(name = "scanFiles")
focal_class.original_string: @Parameter(name = "scanFiles")
      List<File> scanFiles = new ArrayList<>();
focal_class.type: List<File>
focal_class.var_name: scanFiles
focal_class.file: maven/src/main/java/net/adamcin/oakpal/maven/mojo/ScanManyArtifactsMojo.java
focal_class.identifier: ScanManyArtifactsMojo
focal_class.class_method_signature: ScanManyArtifactsMojo.isIndividuallySkipped()
focal_class.full_signature: @Override protected boolean isIndividuallySkipped()
focal_class.identifier: isIndividuallySkipped
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isIndividuallySkipped()
focal_class.class_method_signature: ScanManyArtifactsMojo.listScanFiles()
focal_class.full_signature: final List<File> listScanFiles()
focal_class.identifier: listScanFiles
focal_class.modifiers: final
focal_class.parameters: ()
focal_class.return: List<File>
focal_class.signature: List<File> listScanFiles()
focal_class.class_method_signature: ScanManyArtifactsMojo.executeGuardedIntegrationTest()
focal_class.full_signature: @Override protected void executeGuardedIntegrationTest()
focal_class.identifier: executeGuardedIntegrationTest
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void executeGuardedIntegrationTest()
focal_class.superclass: extends AbstractITestWithPlanMojo
focal_method.body: final List<File> listScanFiles() throws MojoFailureException {
          List<File> resolvedArtifacts = new ArrayList<>();
  
          if (scanArtifacts != null && !scanArtifacts.isEmpty()) {
              resolvedArtifacts.addAll(resolveDependencies(scanArtifacts, false));
          }
  
          if (scanFiles != null && !scanFiles.isEmpty()) {
              resolvedArtifacts.addAll(scanFiles);
          }
  
          return resolvedArtifacts;
      }
focal_method.class_method_signature: ScanManyArtifactsMojo.listScanFiles()
focal_method.full_signature: final List<File> listScanFiles()
focal_method.identifier: listScanFiles
focal_method.invocations: isEmpty addAll resolveDependencies isEmpty addAll
focal_method.modifiers: final
focal_method.parameters: ()
focal_method.return: List<File>
focal_method.signature: List<File> listScanFiles()