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.ViaParser;
23: import gov.nist.javax.sip.parser.WarningParser;
24:
25: public class WarningParserTest extends ParserTestCase {
26:
27: public void testParser() {
28: // TODO Auto-generated method stub
29: String warning[] = {
30: "Warning: 307 isi.edu \"Session parameter 'foo' not understood\"\n",
31: "Warning: 301 isi.edu \"Incompatible network address type 'E.164'\"\n",
32: "Warning: 312 ii.edu \"Soda\", "
33: + " 351 i.edu \"Inetwork address 'E.164'\" , 323 ii.edu \"Sodwea\"\n",
34: "Warning: 399 foo.bar.com \"hold requested\"\n",
35: "Warning: 392 192.168.89.71:5060 \"Noisy feedback tells: pid=936 req_src_ip=192.168.89.20 in_uri=sip:xxx@yyyy.org:5061 out_uri=sip:xxx@yyyy.org:5061 via_cnt==1\"\n" };
36:
37: super .testParser(WarningParser.class, warning);
38:
39: }
40:
41: }
|