moved setup to a base test that can be used in other test classes later

Former-commit-id: fe87e1ce9e9230e628bb5b8e90b0c2e85acd8245
This commit is contained in:
Jeremy Long
2014-12-27 06:42:58 -05:00
parent caa1d77d23
commit 1264ea54a1

View File

@@ -31,10 +31,8 @@ import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugin.testing.stubs.ArtifactStub;
import org.apache.maven.project.MavenProject;
import org.junit.AfterClass;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.BeforeClass;
import org.junit.Test;
import org.owasp.dependencycheck.data.nvdcve.DatabaseException;
import org.owasp.dependencycheck.utils.InvalidSettingException;
@@ -44,17 +42,7 @@ import org.owasp.dependencycheck.utils.Settings;
*
* @author Jeremy Long <jeremy.long@owasp.org>
*/
public class BaseDependencyCheckMojoTest {
@BeforeClass
public static void setUpClass() throws Exception {
Settings.initialize();
}
@AfterClass
public static void tearDownClass() throws Exception {
Settings.cleanup(true);
}
public class BaseDependencyCheckMojoTest extends BaseTest {
/**
* Test of scanArtifacts method, of class BaseDependencyCheckMojo.