jdk/test/java/net/URL/jar_urls
changeset 15631 ad9db22b3490
parent 15630 f644cf0bda45
parent 15572 d17eb2e13e36
child 15632 3d36eadad78f
equal deleted inserted replaced
15630:f644cf0bda45 15631:ad9db22b3490
     1 URL: null
       
     2 spec: jar:http://www.foo.com/dir1/jar.jar!/dir2/entry.txt
       
     3 expected: jar:http://www.foo.com/dir1/jar.jar!/dir2/entry.txt
       
     4 
       
     5 URL: null
       
     6 spec: jar:http://www.foo.com/dir1/jar.jar!/
       
     7 expected: jar:http://www.foo.com/dir1/jar.jar!/
       
     8 
       
     9 URL: null
       
    10 spec: jar:http://www.foo.com/dir1/jar.jar!/
       
    11 expected: jar:http://www.foo.com/dir1/jar.jar!/
       
    12 
       
    13 URL: jar:http://www.foo.com/dir1/jar.jar!/
       
    14 spec: entry.txt
       
    15 expected: jar:http://www.foo.com/dir1/jar.jar!/entry.txt
       
    16 
       
    17 URL: jar:http://www.foo.com/dir1/jar.jar!/
       
    18 spec: /entry.txt
       
    19 expected: jar:http://www.foo.com/dir1/jar.jar!/entry.txt
       
    20 
       
    21 URL: jar:http://www.foo.com/dir1/jar.jar!/
       
    22 spec: dir1/entry.txt
       
    23 expected: jar:http://www.foo.com/dir1/jar.jar!/dir1/entry.txt
       
    24 
       
    25 URL: jar:http://www.foo.com/dir1/jar.jar!/
       
    26 spec: /dir1/entry.txt
       
    27 expected: jar:http://www.foo.com/dir1/jar.jar!/dir1/entry.txt
       
    28 
       
    29 URL: jar:http://www.foo.com/dir1/jar.jar!/
       
    30 spec: entry.txt
       
    31 expected: jar:http://www.foo.com/dir1/jar.jar!/entry.txt
       
    32 
       
    33 URL: jar:http://www.foo.com/dir1/jar.jar!/
       
    34 spec: /entry.txt
       
    35 expected: jar:http://www.foo.com/dir1/jar.jar!/entry.txt
       
    36 
       
    37 URL: jar:http://www.foo.com/dir1/jar.jar!/
       
    38 spec: /entry.txt
       
    39 expected: jar:http://www.foo.com/dir1/jar.jar!/entry.txt
       
    40 
       
    41 URL: jar:http://www.foo.com/dir1/jar.jar!/dir1/
       
    42 spec: entry.txt
       
    43 expected: jar:http://www.foo.com/dir1/jar.jar!/dir1/entry.txt
       
    44 
       
    45 URL: jar:http://www.foo.com/dir1/jar.jar!/dir2/dir3/entry2.txt
       
    46 spec: /dir1/entry.txt
       
    47 expected: jar:http://www.foo.com/dir1/jar.jar!/dir1/entry.txt
       
    48 
       
    49 URL: jar:http://www.foo.com/dir1/jar.jar!/
       
    50 spec: /dir1/foo/entry.txt
       
    51 expected: jar:http://www.foo.com/dir1/jar.jar!/dir1/foo/entry.txt
       
    52 
       
    53 URL: jar:http://www.foo.com/dir1/jar.jar!/dir1/dir2/dir3/
       
    54 spec: dir4/foo/entry.txt
       
    55 expected: jar:http://www.foo.com/dir1/jar.jar!/dir1/dir2/dir3/dir4/foo/entry.txt
       
    56 
       
    57 URL: jar:http://www.foo.com/dir1/jar.jar!/
       
    58 spec: /dir1/foo/entry.txt
       
    59 expected: jar:http://www.foo.com/dir1/jar.jar!/dir1/foo/entry.txt
       
    60 
       
    61 URL: null
       
    62 spec: jar:http://www.foo.com/dir1/jar.jar!/foo.txt#anchor
       
    63 expected: jar:http://www.foo.com/dir1/jar.jar!/foo.txt#anchor
       
    64 
       
    65 URL: jar:http://www.foo.com/dir1/jar.jar!/foo.txt
       
    66 spec: #anchor
       
    67 expected: jar:http://www.foo.com/dir1/jar.jar!/foo.txt#anchor
       
    68 
       
    69 URL: jar:http://www.foo.com/dir1/jar.jar!/foo/bar/
       
    70 spec: baz/quux#anchor
       
    71 expected: jar:http://www.foo.com/dir1/jar.jar!/foo/bar/baz/quux#anchor
       
    72 
       
    73 URL: jar:http://balloo.com/olle.jar!/
       
    74 spec: p2
       
    75 expected: jar:http://balloo.com/olle.jar!/p2