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: * Created on Jul 31, 2004
22: *
23: *The JAIN-SIP project
24: */
25: package test.unit.gov.nist.javax.sip.parser;
26:
27: /**
28: *
29: */
30: public class FromParserTest extends ParserTestCase {
31:
32: /* (non-Javadoc)
33: * @see test.unit.gov.nist.javax.sip.parser.ParserTestCase#testParser()
34: */
35: public void testParser() {
36:
37: String from[] = {
38: "From: +00123456 <sip:+00123456;cpc=ordinary@192.168.3.35;user=phone>;tag=0082-000001c3-025d\n",
39: "From: foobar at com<sip:4855@166.34.120.100 >;tag=1024181795\n",
40: "From: sip:user@company.com\n",
41: "From: sip:caller@university.edu\n",
42: "From: sip:localhost\n",
43: "From: \"A. G. Bell\" <sip:agb@bell-telephone.com> ;tag=a48s\n" };
44:
45: super .testParser(gov.nist.javax.sip.parser.FromParser.class,
46: from);
47:
48: }
49:
50: }
|