use of org.apache.sling.performance.ResourceResolverTestRequest in project sling by apache.
the class ResolveNonExistingWithManyAliasTest method runTest.
@PerformanceTest
public void runTest() throws Exception {
String path = ResourceUtil.normalize(ResourceUtil.getParent(rootPath) + "/" + "testNonExistingAlias" + ".print.html");
HttpServletRequest request = new ResourceResolverTestRequest(path);
Resource res = resResolver.resolve(request, path);
Assert.assertNotNull(res);
}
use of org.apache.sling.performance.ResourceResolverTestRequest in project sling by apache.
the class ResolveNonExistingWithManyVanityPathTest method runTest.
@PerformanceTest
public void runTest() throws Exception {
String path = ResourceUtil.normalize(ResourceUtil.getParent(rootPath) + "/" + "testNonExistingVanity" + ".print.html");
HttpServletRequest request = new ResourceResolverTestRequest(path);
Resource res = resResolver.resolve(request, path);
Assert.assertNotNull(res);
}
Aggregations