Examples of PartialMappingDatabase


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

    { "/petclinic/owners/33416/pets/new", JPA_REPO },
  };
 
  @Test
  public void testBasicPartialMappingsForAppScan() {
    PartialMappingDatabase test = PartialMappingsDatabaseFactory.getPartialMappingsDatabase(
        TestUtils.getMappings(petClinicAppScanData), FrameworkType.SPRING_MVC);
   
    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
TOP
Copyright © 2018 www.massapi.com. 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.