added analyzer initialization so that temp files get put in the correct location

This commit is contained in:
Jeremy Long
2016-11-22 06:40:33 -05:00
parent 316b936326
commit e9556bbbf0

View File

@@ -47,6 +47,7 @@ public class JarAnalyzerTest extends BaseTest {
File file = BaseTest.getResourceAsFile(this, "struts2-core-2.1.2.jar");
Dependency result = new Dependency(file);
JarAnalyzer instance = new JarAnalyzer();
instance.initializeFileTypeAnalyzer();
instance.analyze(result, null);
assertTrue(result.getVendorEvidence().toString().toLowerCase().contains("apache"));
assertTrue(result.getVendorEvidence().getWeighting().contains("apache"));