@Test
public void staticTest() {
String dynamicRoot = "/petclinic", staticRoot = TestConstants.PETCLINIC_SOURCE_LOCATION;
PathCleaner cleaner = new SpringPathCleaner(dynamicRoot, staticRoot);
System.out.println(cleaner);
assertTrue("Didn't save dynamic root correctly", cleaner.getDynamicRoot().equals(dynamicRoot));
assertTrue("Didn't save static root correctly", cleaner.getStaticRoot().equals(staticRoot));
for (String[] test : petClinicFortifyData) {
String testDescription = test[0] + " => " + test[1];
String result = cleaner.cleanStaticPath(test[0]);
assertTrue("Got " + result + " for test " + testDescription,
result.equals(test[1]));
}
}