1270N/A * The contents of this file are subject to the terms of the 1270N/A * Common Development and Distribution License (the "License"). 1270N/A * You may not use this file except in compliance with the License. 1270N/A * language governing permissions and limitations under the License. 1270N/A * When distributing Covered Code, include this CDDL HEADER in each 1270N/A * If applicable, add the following below this CDDL HEADER, with the 1270N/A * fields enclosed by brackets "[]" replaced with your own identifying 1270N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1270N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 1270N/A * Unit tests for the {@code PageConfig} class. 1270N/A // Expect no redirection (that is, empty string is returned) for a 1270N/A // Expect directories without trailing slash to get a trailing slash 1270N/A "/source",
"/xref",
"/mercurial");
1270N/A "/source",
"/history",
"/mercurial");
1270N/A // Expect no redirection (that is, empty string is returned) if the 1270N/A // directories already have a trailing slash. 1270N/A // Expect null if the file or directory doesn't exist. 1270N/A * Assert that {@code canProcess()} returns the expected value for the 1270N/A * @param expected the expected return value 1270N/A * @param context the context path 1270N/A * @param servlet the servlet path 1270N/A * @param pathInfo the path info 1270N/A * Create a request with the specified path elements. 1270N/A * @param contextPath the context path 1270N/A * @param servletPath the path of the servlet 1270N/A * @param pathInfo the path info 1270N/A * @return a servlet request for the specified path