J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | <HostIdentifierTests> |
| 2 | |
| 3 | <testcase id="0" HostIdentifierInput=""> |
| 4 | <description> |
| 5 | null host identifier (empty string translated to null reference value) |
| 6 | </description> |
| 7 | <HostIdentifier> //localhost </HostIdentifier> |
| 8 | </testcase> |
| 9 | |
| 10 | <testcase id="1" HostIdentifierInput="localhost"> |
| 11 | <description> |
| 12 | localhost hostname |
| 13 | </description> |
| 14 | <HostIdentifier> //localhost </HostIdentifier> |
| 15 | </testcase> |
| 16 | |
| 17 | <testcase id="2" HostIdentifierInput="localhost:1234"> |
| 18 | <description> |
| 19 | localhost hostname and port number |
| 20 | </description> |
| 21 | <HostIdentifier> //localhost:1234 </HostIdentifier> |
| 22 | </testcase> |
| 23 | |
| 24 | |
| 25 | <testcase id="3" HostIdentifierInput="//localhost"> |
| 26 | <description> |
| 27 | localhost hostname, preceeded with // |
| 28 | </description> |
| 29 | <HostIdentifier> //localhost </HostIdentifier> |
| 30 | </testcase> |
| 31 | |
| 32 | <testcase id="4" HostIdentifierInput="//localhost:1234"> |
| 33 | <description> |
| 34 | localhost hostname and port number, preceeded with // |
| 35 | </description> |
| 36 | <HostIdentifier> //localhost:1234 </HostIdentifier> |
| 37 | </testcase> |
| 38 | |
| 39 | <testcase id="5" HostIdentifierInput="local://localhost"> |
| 40 | <description> |
| 41 | protocol and hostname |
| 42 | </description> |
| 43 | <HostIdentifier> local://localhost </HostIdentifier> |
| 44 | </testcase> |
| 45 | |
| 46 | <testcase id="6" HostIdentifierInput="local://localhost:1234"> |
| 47 | <description> |
| 48 | protocol, hostname, and port |
| 49 | </description> |
| 50 | <HostIdentifier> local://localhost:1234 </HostIdentifier> |
| 51 | </testcase> |
| 52 | |
| 53 | <testcase id="7" HostIdentifierInput="10.0.0.1"> |
| 54 | <description> |
| 55 | dotted ip for hostname |
| 56 | </description> |
| 57 | <HostIdentifier> //10.0.0.1 </HostIdentifier> |
| 58 | </testcase> |
| 59 | |
| 60 | <testcase id="8" HostIdentifierInput="//10.0.0.1"> |
| 61 | <description> |
| 62 | dotted ip for hostname, preceeded with // |
| 63 | </description> |
| 64 | <HostIdentifier> //10.0.0.1 </HostIdentifier> |
| 65 | </testcase> |
| 66 | |
| 67 | <testcase id="9" HostIdentifierInput="//10.0.0.1:1234"> |
| 68 | <description> |
| 69 | dotted ip for hostname and port number, preceeded with // |
| 70 | </description> |
| 71 | <HostIdentifier> //10.0.0.1:1234 </HostIdentifier> |
| 72 | </testcase> |
| 73 | |
| 74 | <testcase id="10" HostIdentifierInput="local://10.0.0.1"> |
| 75 | <description> |
| 76 | protocol and dotted ip for hostname |
| 77 | </description> |
| 78 | <HostIdentifier> local://10.0.0.1 </HostIdentifier> |
| 79 | </testcase> |
| 80 | |
| 81 | <testcase id="11" HostIdentifierInput="local://10.0.0.1:1234"> |
| 82 | <description> |
| 83 | protocol, dotted ip for hostname, and port |
| 84 | </description> |
| 85 | <HostIdentifier> local://10.0.0.1:1234 </HostIdentifier> |
| 86 | </testcase> |
| 87 | |
| 88 | <testcase id="12" HostIdentifierInput="//localhost/ServerName"> |
| 89 | <description> |
| 90 | hostname and specificed server name, preceeded with // |
| 91 | </description> |
| 92 | <HostIdentifier> //localhost/ServerName </HostIdentifier> |
| 93 | </testcase> |
| 94 | |
| 95 | <testcase id="13" HostIdentifierInput="localhost:1234/ServerName"> |
| 96 | <description> |
| 97 | hostname, port, and specificed server name |
| 98 | </description> |
| 99 | <HostIdentifier> //localhost:1234/ServerName </HostIdentifier> |
| 100 | </testcase> |
| 101 | |
| 102 | <testcase id="14" HostIdentifierInput="//localhost:1234/ServerName"> |
| 103 | <description> |
| 104 | hostname, port, and specificed server name, preceeded by // |
| 105 | </description> |
| 106 | <HostIdentifier> //localhost:1234/ServerName </HostIdentifier> |
| 107 | </testcase> |
| 108 | |
| 109 | <testcase id="15" HostIdentifierInput="local://localhost/ServerName"> |
| 110 | <description> |
| 111 | protocol, hostname, and specificed server name |
| 112 | </description> |
| 113 | <HostIdentifier> local://localhost/ServerName </HostIdentifier> |
| 114 | </testcase> |
| 115 | |
| 116 | <testcase id="16" HostIdentifierInput="local://localhost:1234/ServerName"> |
| 117 | <description> |
| 118 | protocol, hostname, port, and specificed server name |
| 119 | </description> |
| 120 | <HostIdentifier> local://localhost:1234/ServerName </HostIdentifier> |
| 121 | </testcase> |
| 122 | |
| 123 | <testcase id="17" HostIdentifierInput="10.0.0.1/ServerName"> |
| 124 | <description> |
| 125 | dotted hostname and specificed server name |
| 126 | </description> |
| 127 | <HostIdentifier> //10.0.0.1/ServerName </HostIdentifier> |
| 128 | </testcase> |
| 129 | |
| 130 | <testcase id="18" HostIdentifierInput="//10.0.0.1/ServerName"> |
| 131 | <description> |
| 132 | dotted hostname and specificed server name, preceeded with // |
| 133 | </description> |
| 134 | <HostIdentifier> //10.0.0.1/ServerName </HostIdentifier> |
| 135 | </testcase> |
| 136 | |
| 137 | <testcase id="19" HostIdentifierInput="//10.0.0.1:1234/ServerName"> |
| 138 | <description> |
| 139 | dotted hostname, port, and specificed server name, preceeded by // |
| 140 | </description> |
| 141 | <HostIdentifier> //10.0.0.1:1234/ServerName </HostIdentifier> |
| 142 | </testcase> |
| 143 | |
| 144 | <testcase id="20" HostIdentifierInput="local://10.0.0.1/ServerName"> |
| 145 | <description> |
| 146 | protocol, dotted hostname, and specificed server name |
| 147 | </description> |
| 148 | <HostIdentifier> local://10.0.0.1/ServerName </HostIdentifier> |
| 149 | </testcase> |
| 150 | |
| 151 | <testcase id="21" HostIdentifierInput="local://10.0.0.1:1234/ServerName"> |
| 152 | <description> |
| 153 | protocol, dotted hostname, port, and specificed server name |
| 154 | </description> |
| 155 | <HostIdentifier> local://10.0.0.1:1234/ServerName </HostIdentifier> |
| 156 | </testcase> |
| 157 | |
| 158 | <testcase id="22" HostIdentifierInput="local://localhost:1234/ServerName?interval=9876"> |
| 159 | <description> |
| 160 | protocol, hostname, port, and specificed server name, with query |
| 161 | </description> |
| 162 | <HostIdentifier> local://localhost:1234/ServerName?interval=9876 </HostIdentifier> |
| 163 | </testcase> |
| 164 | |
| 165 | <testcase id="23" HostIdentifierInput="local://10.0.0.1:1234/ServerName?interval=9876"> |
| 166 | <description> |
| 167 | protocol, dotted hostname, port, and specificed server name, with query |
| 168 | </description> |
| 169 | <HostIdentifier> local://10.0.0.1:1234/ServerName?interval=9876 </HostIdentifier> |
| 170 | </testcase> |
| 171 | |
| 172 | <testcase id="24" HostIdentifierInput="local://localhost:1234/ServerName#frag"> |
| 173 | <description> |
| 174 | protocol, hostname, port, and specificed server name, with fragment |
| 175 | </description> |
| 176 | <HostIdentifier> local://localhost:1234/ServerName#frag </HostIdentifier> |
| 177 | </testcase> |
| 178 | |
| 179 | <testcase id="25" HostIdentifierInput="local://10.0.0.1:1234/ServerName#frag"> |
| 180 | <description> |
| 181 | protocol, dotted hostname, port, and specificed server name, with fragment |
| 182 | </description> |
| 183 | <HostIdentifier> local://10.0.0.1:1234/ServerName#frag </HostIdentifier> |
| 184 | </testcase> |
| 185 | |
| 186 | <testcase id="26" HostIdentifierInput="local://localhost:1234/ServerName?interval=9876#frag"> |
| 187 | <description> |
| 188 | protocol, hostname, port, and specificed server name, with query and fragment |
| 189 | </description> |
| 190 | <HostIdentifier> local://localhost:1234/ServerName?interval=9876#frag </HostIdentifier> |
| 191 | </testcase> |
| 192 | |
| 193 | <testcase id="27" HostIdentifierInput="local://10.0.0.1:1234/ServerName?interval=9876#frag"> |
| 194 | <description> |
| 195 | protocol, dotted hostname, port, and specificed server name, with query and fragment |
| 196 | </description> |
| 197 | <HostIdentifier> local://10.0.0.1:1234/ServerName?interval=9876#frag </HostIdentifier> |
| 198 | </testcase> |
| 199 | |
| 200 | <testcase id="28" HostIdentifierInput="file://localhost"> |
| 201 | <description> |
| 202 | file URI |
| 203 | </description> |
| 204 | <HostIdentifier> file://localhost </HostIdentifier> |
| 205 | </testcase> |
| 206 | |
| 207 | <testcase id="29" HostIdentifierInput="rmi:localhost:1234"> |
| 208 | <description> |
| 209 | special syntax - not a valid URI, but allowed by HostIdentifier |
| 210 | </description> |
| 211 | <HostIdentifier> rmi://localhost:1234 </HostIdentifier> |
| 212 | </testcase> |
| 213 | |
| 214 | <testcase id="30" HostIdentifierInput="rmi:10.0.0.1:1234"> |
| 215 | <description> |
| 216 | special syntax - not a valid URI, but allowed by HostIdentifier |
| 217 | </description> |
| 218 | <HostIdentifier> rmi://10.0.0.1:1234 </HostIdentifier> |
| 219 | </testcase> |
| 220 | |
| 221 | </HostIdentifierTests> |