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: * PRODUCT OF PT INOVACAO - EST DEPARTMENT and Telecommunications Institute (Aveiro, Portugal) *
22: ************************************************************************************************/package test.unit.gov.nist.javax.sip.parser.ims;
23:
24: import gov.nist.javax.sip.parser.ims.SecurityVerifyParser;
25: import test.unit.gov.nist.javax.sip.parser.ParserTestCase;
26:
27: public class SecurityVerifyParserTest extends ParserTestCase {
28: public void testParser() {
29: // TODO Auto-generated method stub
30:
31: String[] securityVerify = {
32: "Security-Verify: ipsec-3gpp; alg=hmac-sha-1-96; spi-c=23456789; spi-s=12345678; "
33: + "port-c=2468; port-s=1357; q=0.1\n",
34:
35: // list
36: "Security-Verify: ipsec-3gpp; alg=hmac-sha-1-96; spi-c=23456789; spi-s=12345678; "
37: + "port-c=2468; port-s=1357; q=0.1, "
38: +
39:
40: "ipsec-3gpp; alg=hmac-sha-1-96; spi-c=98765432; spi-s=87654321; "
41: + "port-c=8642; port-s=7531; q=0.5 \n"
42:
43: };
44:
45: super .testParser(SecurityVerifyParser.class, securityVerify);
46: }
47:
48: }
|