Commit 2e46c426 authored by Daniel Bluhm's avatar Daniel Bluhm
Browse files

Add more docs to DependencyScraperTest


Signed-off-by: Daniel Bluhm's avatarDaniel Bluhm <bluhmdj@ornl.gov>
parent 8ee8ff1e
......@@ -16,11 +16,26 @@ import java.nio.file.attribute.BasicFileAttributes;
import java.util.List;
import java.util.Set;
/**
* Test DepedencyScraper Maven Plugin.
* @author Daniel Bluhm
*/
public class DependencyScraperTest
{
/**
* Test "project" path.
*/
private static final Path PROJECT = Path.of("target/test-classes/project-to-test");
/**
* Test project's output path.
*/
private static final Path OUTPUT = Path.of("target/test-classes/project-to-test/test");
/**
* Maven Plugin Testing Harness magic that enables us to get a dependency
* scraper instance from reading a specified POM file.
*/
@Rule
public MojoRule rule = new MojoRule() {
@Override
......@@ -49,6 +64,10 @@ public class DependencyScraperTest
return myMojo;
}
/**
* Clean out the output directory after each test.
* @throws IOException if any
*/
@After
public void clearOutputDirectory() throws IOException {
if (Files.exists(OUTPUT)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment