updated to initialize the settings object

Former-commit-id: 7920a16418cb0b539571058942606dfd3b142525
This commit is contained in:
Jeremy Long
2014-04-19 08:59:04 -04:00
parent 291a8c2bfb
commit 36fd4dbcf4
2 changed files with 8 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.owasp.dependencycheck.data.nvdcve.BaseDBTestCase;
import org.owasp.dependencycheck.utils.Settings;
/**
*
@@ -37,11 +38,13 @@ public class DependencyCheckTaskTest extends BuildFileTest {
}
@BeforeClass
public static void setUpClass() {
public static void setUpClass() throws Exception {
Settings.initialize();
}
@AfterClass
public static void tearDownClass() {
public static void tearDownClass() throws Exception {
Settings.cleanup();
}
@Before

View File

@@ -29,6 +29,7 @@ import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.owasp.dependencycheck.utils.Settings;
/**
*
@@ -38,10 +39,12 @@ public class CliParserTest {
@BeforeClass
public static void setUpClass() throws Exception {
Settings.initialize();
}
@AfterClass
public static void tearDownClass() throws Exception {
Settings.cleanup();
}
@Before