{ "/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);