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: /*
21: * ReferToParserTest.java
22: *
23: * Created on Mar 27, 2005
24: *
25: * Created by: M. Ranganathan
26: *
27: * The JAIN-SIP Project
28: *
29: */
30:
31: package test.unit.gov.nist.javax.sip.parser;
32:
33: import gov.nist.javax.sip.parser.ReferToParser;
34:
35: /**
36: *
37: */
38: public class ReferToParserTest extends ParserTestCase {
39:
40: /* (non-Javadoc)
41: * @see test.unit.gov.nist.javax.sip.parser.ParserTestCase#testParser()
42: */
43: public void testParser() {
44:
45: String p[] = {
46: "Refer-To: <sip:dave@denver.example.org?"
47: + "Replaces=12345%40192.168.118.3%3Bto-tag%3D12345%3Bfrom-tag%3D5FFE-3994>\n",
48: "Refer-To: <sip:+1-650-555-2222@ss1.wcom.com;user=phone>;tag=5617\n",
49: "Refer-To: T. A. Watson <sip:watson@bell-telephone.com>\n",
50: "Refer-To: LittleGuy <sip:UserB@there.com>\n",
51: "Refer-To: sip:mranga@120.6.55.9\n",
52: "Refer-To: sip:mranga@129.6.55.9 ; tag=696928473514.129.6.55.9\n" };
53:
54: super .testParser(ReferToParser.class, p);
55: }
56:
57: }
|