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.*;
23:
24: public class ViaParserTest extends ParserTestCase {
25: String via[] = {
26: "Via: SIP/2.0/UDP 135.180.130.133\n",
27: "Via: SIP/2.0/UDP 166.34.120.100;branch=0000045d-00000001"
28: + ",SIP/2.0/UDP 166.35.224.216:5000\n",
29: "Via: SIP/2.0/UDP sip33.example.com,"
30: + " SIP/2.0/UDP sip32.example.com (oli),"
31: + "SIP/2.0/UDP sip31.example.com\n",
32: "Via: SIP/2.0/UDP host.example.com;received=::133;"
33: + " branch=C1C3344E2710000000E299E568E7potato10potato0potato0\n",
34: "Via: SIP/2.0/UDP host.example.com;received=135.180.130.133;"
35: + " branch=C1C3344E2710000000E299E568E7potato10potato0potato0\n",
36: "Via: SIP/2.0/UDP company.com:5604 ( Hello )"
37: + ", SIP / 2.0 / UDP 135.180.130.133\n",
38: "Via: SIP/2.0/UDP 129.6.55.9:7060;received=stinkbug.antd.nist.gov\n",
39: "Via: SIP/2.0/UDP ss2.wcom.com:5060;branch=721e418c4.1"
40: + ", SIP/2.0/UDP ss1.wcom.com:5060;branch=2d4790.1"
41: + " , SIP/2.0/UDP here.com:5060( Hello the big world) \n",
42: "Via: SIP/2.0/UDP ss1.wcom.com:5060;branch=2d4790.1\n",
43: "Via: SIP/2.0/UDP first.example.com:4000;ttl=16"
44: + ";maddr=224.2.0.1 ;branch=a7c6a8dlze.1 (Acme server)\n" };
45:
46: public void testParser() {
47: super .testParser(ViaParser.class, via);
48: }
49:
50: }
|