Package com.denimgroup.threadfix.framework.engine

Examples of com.denimgroup.threadfix.framework.engine.ProjectConfig


   
    File[] rootFiles = { null, new File(TestConstants.BODGEIT_SOURCE_LOCATION) };

    for (File file : rootFiles) {
      for (SourceCodeAccessLevel accessLevel : SourceCodeAccessLevel.values()) {
        ProjectConfig config = new ProjectConfig(FrameworkType.JSP, accessLevel, file, null);
                JSPDataFlowParser parser = new JSPDataFlowParser(config);
        assertTrue("Parameter was not null and should have been.",
            parser.parse(EndpointQueryBuilder.start().generateQuery()) == null);
        assertTrue("Parameter was not null and should have been.",
            parser.parse(emptyDataFlowFinding) == null);
View Full Code Here


   
  }

    @Test(expected=NullPointerException.class)
    public void testParserNullInput() {
        ProjectConfig config = new ProjectConfig(FrameworkType.JSP, SourceCodeAccessLevel.DETECT,
                new File(TestConstants.BODGEIT_SOURCE_LOCATION), null);
        JSPDataFlowParser parser = new JSPDataFlowParser(config);
        parser.parse(null);
    }
View Full Code Here

      return RestResponse.failure("Unable to create an EndpointGenerator.");
    }
  }

    public ProjectConfig getProjectConfig(Application application) {
        return new ProjectConfig(application.getFrameworkTypeEnum(),
                application.getSourceCodeAccessLevelEnum(),
                gitService.getWorkTree(application),
                application.getProjectRoot()
        );
    }
View Full Code Here

        SourceCodeAccessLevel accessLevel = getSourceCodeAccessLevel(application, scan);
        File rootFile = getRootFile(application);
        FrameworkType frameworkType = getFrameworkType(application, accessLevel, rootFile, scan);

        ProjectConfig config = new ProjectConfig(frameworkType, accessLevel, rootFile, "/");

        FindingProcessor processor;

        if (accessLevel == SourceCodeAccessLevel.FULL) {
            LOG.info("Got full source code access from configured code location. Returning FullSourceFindingProcessor.");
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.framework.engine.ProjectConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.