All Downloads are FREE. Search and download functionalities are using the official Maven repository.

test.unit.gov.nist.javax.sip.parser.WarningParserTest Maven / Gradle / Ivy

There is a newer version: 1.3.0-91
Show newest version
/*
* Conditions Of Use
*
* This software was developed by employees of the National Institute of
* Standards and Technology (NIST), and others.
* This software is has been contributed to the public domain.
* As a result, a formal license is not needed to use the software.
*
* This software is provided "AS IS."
* NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  NIST does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
*
*/
package test.unit.gov.nist.javax.sip.parser;

import gov.nist.javax.sip.parser.ViaParser;
import gov.nist.javax.sip.parser.WarningParser;

public class WarningParserTest extends ParserTestCase {

    public void testParser() {
        // TODO Auto-generated method stub
        String
          warning[] = { "Warning: 307 isi.edu \"Session parameter 'foo' not understood\"\n",
                "Warning: 301 isi.edu \"Incompatible network address type 'E.164'\"\n",
                "Warning: 312 ii.edu \"Soda\", "+ " 351 i.edu \"Inetwork address 'E.164'\" , 323 ii.edu \"Sodwea\"\n",
                "Warning: 399 foo.bar.com \"hold requested\"\n",
                "Warning: 392 192.168.89.71:5060 \"Noisy feedback tells: pid=936 req_src_ip=192.168.89.20 in_uri=sip:[email protected]:5061 out_uri=sip:[email protected]:5061 via_cnt==1\"\n"
                };

            super.testParser(WarningParser.class,warning);

    }



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy