Package com.denimgroup.threadfix.framework.engine.partial

Examples of com.denimgroup.threadfix.framework.engine.partial.DefaultPartialMapping


  @Nonnull
    public static List<PartialMapping> getMappings(@Nonnull String[][] strings) {
    List<PartialMapping> mappings = list();
   
    for (String[] stringArray : strings) {
      mappings.add(new DefaultPartialMapping(stringArray[0], stringArray[1]));
    }
   
    return mappings;
  }
View Full Code Here


    test.addMappings(TestUtils.getMappings(petClinicFortifyData));
   
    for (String[] stringArray : springMvcQueries) {
     
      String testDescription = "Path = " + stringArray[0] + ", expected " + stringArray[1];
      PartialMapping result = test.findBestMatch(new DefaultPartialMapping(null, stringArray[0]));
     
      if (result == null) {
        assertTrue("Got null for test " + testDescription, stringArray[1] == null);
      } else {
        assertTrue("Static path was null for " + testDescription, result.getStaticPath() != null);
View Full Code Here

    File file = new File(TestConstants.BODGEIT_SOURCE_LOCATION);
   
    List<PartialMapping> partialMappings = list();
   
    for (String page : pages) {
      partialMappings.add(new DefaultPartialMapping(null, dynamicRoot + page));
    }
   
    EndpointDatabase db = EndpointDatabaseFactory.getDatabase(file, partialMappings);
   
    assertTrue(db.getFrameworkType() == FrameworkType.JSP);
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.framework.engine.partial.DefaultPartialMapping

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.