01: /*
02: * Conditions Of Use
03: *
04: * This software was developed by employees of the National Institute of
05: * Standards and Technology (NIST), and others.
06: * This software is has been contributed to the public domain.
07: * As a result, a formal license is not needed to use the software.
08: *
09: * This software is provided "AS IS."
10: * NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
11: * OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
12: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
13: * AND DATA ACCURACY. NIST does not warrant or make any representations
14: * regarding the use of the software or the results thereof, including but
15: * not limited to the correctness, accuracy, reliability or usefulness of
16: * the software.
17: *
18: *
19: */
20: package test.unit.gov.nist.javax.sip.parser;
21:
22: import gov.nist.javax.sip.parser.RouteParser;
23:
24: public class RouteParserTest extends ParserTestCase {
25:
26: public void testParser() {
27: // TODO Auto-generated method stub
28: String[] routes = {
29: "Route: <sip:alice@atlanta.com>\n",
30: "Route: \"AliceA\" <sip:alice@atlanta.com>\n",
31: // technically illegal >
32: "Route: sip:bob@biloxi.com \n",
33: "Route: <sip:TIA-P25-U2Uorig@AF.003.1300.p25dr;lr>\n",
34: // pmusgrave - illegal (must have <>'s )
35: // "Route: sip:alice@atlanta.com, sip:bob@biloxi.com, sip:carol@chicago.com\n",
36: "Route: <sip:bigbox3.site3.atlanta.com;lr>,<sip:server10.biloxi.com;lr>\n",
37: "Route: <sip:3Zqkv5dajqaaas0tCjCxT0xH2ZEuEMsFl0xoasip%3A%2B3519116786244%40siplab.domain.com@213.0.115.163:7070;lr>\n" };
38: super .testParser(RouteParser.class, routes);
39: }
40:
41: }
|