axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/tests/client/httpHeader/test8/rpc TestClient.cpp
Date Mon, 06 Dec 2004 02:34:56 GMT
samisa      2004/12/05 18:34:56

  Modified:    c/tests/client/httpHeader/test8/rpc TestClient.cpp
  Log:
  Added some more tests - test for NULL value; Test deleting non-existing header.
  
  Revision  Changes    Path
  1.7       +4 -1      ws-axis/c/tests/client/httpHeader/test8/rpc/TestClient.cpp
  
  Index: TestClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/httpHeader/test8/rpc/TestClient.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestClient.cpp	24 Nov 2004 13:25:21 -0000	1.6
  +++ TestClient.cpp	6 Dec 2004 02:34:56 -0000	1.7
  @@ -52,7 +52,9 @@
       InteropTestPortType ws(endpoint, APTHTTP1_1);
   
       //set HTTP headers
  -     ws.setTransportProperty(NULL, "lang2");
  +    ws.setTransportProperty(NULL, "lang2"); // invalid - key null
  +    ws.setTransportProperty("Accept-Language", " da, en-gb;q=0.8, en;q=0.7"); // valid
  +    ws.setTransportProperty("Accept-Language", NULL); // invalid - value null
   
       printf("Sending Requests to end point %s \n\n", endpoint);
       printf("invoking echoString...\n");
  @@ -88,6 +90,7 @@
   
       //test removing HTTP headers
       ws.deleteTrasportProperty("Accept-Language");
  +    ws.deleteTrasportProperty("Accept-Language"); // delete non existant header
   
       //now the request should not have these removed headers
       try
  
  
  

Mime
View raw message