|
30 | 30 | * @author Peter Donald |
31 | 31 | * @author Matthew Hawthorne |
32 | 32 | * @author Martin Cooper |
33 | | - * @version $Id: FilenameUtilsTestCase.java,v 1.11 2004/10/24 18:34:23 martinc Exp $ |
| 33 | + * @version $Id: FilenameUtilsTestCase.java,v 1.12 2004/10/24 18:44:51 martinc Exp $ |
34 | 34 | * @see FilenameUtils |
35 | 35 | */ |
36 | 36 | public class FilenameUtilsTestCase extends FileBasedTestCase { |
@@ -209,9 +209,9 @@ public void testGetExtension() { |
209 | 209 | { "README", "" }, |
210 | 210 | { "domain.dot.com", "com" }, |
211 | 211 | { "image.jpeg", "jpeg" }, |
212 | | - { "a.b" + File.separator + "c", "" }, |
213 | | - { "a.b" + File.separator + "c.txt", "txt" }, |
214 | | - { "a" + File.separator + "b" + File.separator + "c", "" }, |
| 212 | + { "a.b/c", "" }, |
| 213 | + { "a.b/c.txt", "txt" }, |
| 214 | + { "a/b/c", "" }, |
215 | 215 | }; |
216 | 216 | for (int i = 0; i < tests.length; i++) { |
217 | 217 | assertEquals(tests[i][1], FilenameUtils.getExtension(tests[i][0])); |
@@ -244,9 +244,9 @@ public void testRemoveExtension() { |
244 | 244 | { "README", "README" }, |
245 | 245 | { "domain.dot.com", "domain.dot" }, |
246 | 246 | { "image.jpeg", "image" }, |
247 | | - { "a.b" + File.separator + "c", "a.b" + File.separator + "c" }, |
248 | | - { "a.b" + File.separator + "c.txt", "a.b" + File.separator + "c" }, |
249 | | - { "a" + File.separator + "b" + File.separator + "c", "a" + File.separator + "b" + File.separator + "c" }, |
| 247 | + { "a.b/c", "a.b/c" }, |
| 248 | + { "a.b/c.txt", "a.b/c" }, |
| 249 | + { "a/b/c", "a/b/c" }, |
250 | 250 | }; |
251 | 251 |
|
252 | 252 | for (int i = 0; i < tests.length; i++) { |
|
0 commit comments