File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515// specific language governing permissions and limitations
1616// under the License.
1717
18- package org .openqa .selenium .remote . server ;
18+ package org .openqa .selenium .grid . web ;
1919
2020import com .google .common .collect .ImmutableList ;
2121import com .google .common .collect .ImmutableMap ;
2828/**
2929 * An incredibly bad implementation of URL Templates, but enough for our needs.
3030 */
31- class UrlTemplate {
31+ public class UrlTemplate {
3232
3333 private final static Pattern GROUP_NAME = Pattern .compile ("\\ (\\ ?<([a-zA-Z][a-zA-Z0-9]*)>" );
3434 private final List <Matches > template ;
Original file line number Diff line number Diff line change 2323import com .google .common .collect .ImmutableMap ;
2424
2525import org .openqa .selenium .grid .web .CommandHandler ;
26+ import org .openqa .selenium .grid .web .UrlTemplate ;
2627import org .openqa .selenium .injector .Injector ;
2728import org .openqa .selenium .json .Json ;
2829import org .openqa .selenium .remote .SessionId ;
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ java_library(
8383 'SessionCodec.java' ,
8484 'SessionFactory.java' ,
8585 'TeeReader.java' ,
86- 'UrlTemplate.java' ,
8786 'WebDriverServlet.java' ,
8887 ] + glob (['commandhandler/*.java' ]),
8988 provided_deps = [
Original file line number Diff line number Diff line change 1+ # BUILD FILE SYNTAX: SKYLARK
2+
3+ java_test (
4+ name = "web" ,
5+ labels = [ "small" ],
6+ srcs = glob (["*.java" ]),
7+ deps = [
8+ "//java/server/src/org/openqa/selenium/grid/web:web" ,
9+ "//third_party/java/guava:guava" ,
10+ "//third_party/java/junit:junit" ,
11+ ],
12+ )
Original file line number Diff line number Diff line change 1515// specific language governing permissions and limitations
1616// under the License.
1717
18- package org .openqa .selenium .remote . server ;
18+ package org .openqa .selenium .grid . web ;
1919
2020import static org .junit .Assert .assertEquals ;
2121import static org .junit .Assert .assertNull ;
2424import com .google .common .collect .ImmutableMap ;
2525
2626import org .junit .Test ;
27+ import org .openqa .selenium .grid .web .UrlTemplate ;
2728
2829public class UrlTemplateTest {
2930
Original file line number Diff line number Diff line change 4848 TeeReaderTest .class ,
4949 UploadFileTest .class ,
5050 org .openqa .selenium .remote .server .commandhandler .UploadFileTest .class ,
51- UrlTemplateTest .class ,
5251 UtilsTest .class ,
5352 WebDriverServletTest .class
5453})
You can’t perform that action at this time.
0 commit comments