@@ -90,46 +90,46 @@ public void testUrlToPathLonger256NoSuffix() throws Exception {
90
90
}
91
91
92
92
@ Test
93
- public void tesPathUpNoGoBasic () throws Exception {
93
+ public void testPathUpNoGoBasic () throws Exception {
94
94
final URL u = new URL ("https://example.com/applet/../my.jar" );
95
95
final File expected = new File ("/tmp/https/example.com/abca4723622ed60db3dea12cbe2402622a74f7a49b73e23b55988e4eee5ded.jar" );
96
96
File r = CacheUtil .urlToPath (u , "/tmp/" );
97
97
Assert .assertEquals (expected , r );
98
98
}
99
99
100
100
@ Test
101
- public void tesPathUpNoGoBasicLong () throws Exception {
101
+ public void testPathUpNoGoBasicLong () throws Exception {
102
102
final URL u = new URL ("https://example.com/applet/../my.jar.q_SlNFU1NJT05JRD02OUY1ODVCNkJBOTM1NThCQjdBMTA5RkQyNDZEQjEwRi5wcm9kX3RwdG9tY2F0MjE1X2p2bTsgRW50cnVzdFRydWVQYXNzUmVkaXJlY3RVcmw9Imh0dHBzOi8vZWZzLnVzcHRvLmdvdi9FRlNXZWJVSVJlZ2lzdGVyZWQvRUZTV2ViUmVnaXN0ZXJlZCI7IFRDUFJPRFBQQUlSc2Vzc2lvbj02MjIxMjk0MTguMjA0ODAuMDAwMA\" " );
103
103
final File expected = new File ("/tmp/https/example.com/ec97413e3f6eee8215ecc8375478cc1ae5f44f18241b9375361d5dfcd7b0ec" );
104
104
File r = CacheUtil .urlToPath (u , "/tmp/" );
105
105
Assert .assertEquals (expected , r );
106
106
}
107
107
108
108
@ Test
109
- public void tesPathUpNoGoBasic2 () throws Exception {
109
+ public void testPathUpNoGoBasic2 () throws Exception {
110
110
final URL u = new URL ("https://example.com/../my.jar" );
111
111
final File expected = new File ("/tmp/https/example.com/eb1a56bed34523dbe7ad84d893ebc31a8bbbba9ce3f370e42741b6a5f067c140.jar" );
112
112
File r = CacheUtil .urlToPath (u , "/tmp/" );
113
113
Assert .assertEquals (expected , r );
114
114
}
115
115
116
116
@ Test
117
- public void tesPathUpNoGoBasicEvil () throws Exception {
117
+ public void testPathUpNoGoBasicEvil () throws Exception {
118
118
final URL u = new URL ("https://example.com/../../my.jar" );
119
119
final File expected = new File ("/tmp/https/example.com/db464f11d68af73e37eefaef674517b6be23f0e4a5738aaee774ecf5b58f1bfc.jar" );
120
120
File r = CacheUtil .urlToPath (u , "/tmp/" );
121
121
Assert .assertEquals (expected , r );
122
122
}
123
123
124
124
@ Test
125
- public void tesPathUpNoGoBasicEvil2 () throws Exception {
125
+ public void testPathUpNoGoBasicEvil2 () throws Exception {
126
126
final URL u = new URL ("https://example.com:99/../../../my.jar" );
127
127
final File expected = new File ("/tmp/https/example.com/99/95401524c345e0d554d4d77330e86c98a77b9bb58a0f93094204df446b356.jar" );
128
128
File r = CacheUtil .urlToPath (u , "/tmp/" );
129
129
Assert .assertEquals (expected , r );
130
130
}
131
131
@ Test
132
- public void tesPathUpNoGoBasicEvilest () throws Exception {
132
+ public void testPathUpNoGoBasicEvilest () throws Exception {
133
133
final URL u = new URL ("https://example2.com/something/../../../../../../../../../../../my.jar" );
134
134
final File expected = new File ("/tmp/https/example2.com/a8df64388f5b84d5f635e4d6dea5f4d2f692ae5381f8ec6736825ff8d6ff2c0.jar" );
135
135
File r = CacheUtil .urlToPath (u , "/tmp/" );
0 commit comments