axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c/tests/auto_build/testcases/client/cpp TestSoapHeaderBlock2Client.cpp TestSoapHeaderBlock3Client.cpp TestSoapHeaderBlockClient.cpp
Date Fri, 04 Feb 2005 17:28:53 GMT
dicka       2005/02/04 09:28:53

  Modified:    c/tests/auto_build/testcases/client/cpp
                        TestSoapHeaderBlock2Client.cpp
                        TestSoapHeaderBlock3Client.cpp
                        TestSoapHeaderBlockClient.cpp
  Log:
  Convert tests to use cout, due to sequencing issues when making mixed use of cout and printf,
giving the false appearance of failing tests.
  
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.2       +8 -8      ws-axis/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock2Client.cpp
  
  Index: TestSoapHeaderBlock2Client.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock2Client.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestSoapHeaderBlock2Client.cpp	3 Feb 2005 10:24:49 -0000	1.1
  +++ TestSoapHeaderBlock2Client.cpp	4 Feb 2005 17:28:53 -0000	1.2
  @@ -3,7 +3,7 @@
    */
   
   #include "MathOps.hpp"
  -
  +#include <iostream>
   
   int main(int argc, char *argv[])
   {
  @@ -84,19 +84,19 @@
   
       phb->addChild(parentNode);
   
  -	printf("invoking MathOps div...\n");
  +	cout << "invoking MathOps div..." << endl;
   	try
   		{
                   iResult = ws.div(15,5);
  -                printf("%d\n", iResult);		
  +                cout << iResult << endl;		
           }
           catch (AxisException& e)
           {
  -                printf("%s\n", e.what());
  +                cout << e.what() << endl;
           }
           catch(...)
           {
  -                printf("Unknown exception\n");
  +                cout << "Unknown exception" << endl;
           }
   	
      
  @@ -108,15 +108,15 @@
       try
       {
                   iResult = ws.div(15,5);
  -                printf("%d\n", iResult);
  +                cout << iResult << endl;
       }
       catch (AxisException& e)
       {
  -        printf("%s\n", e.what());
  +        cout << e.what() << endl;
       }
       catch(...)
       {
  -        printf("Unknown exception\n");
  +        cout << "Unknown exception" << endl;
       }
   
   	
  
  
  
  1.2       +8 -8      ws-axis/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock3Client.cpp
  
  Index: TestSoapHeaderBlock3Client.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock3Client.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestSoapHeaderBlock3Client.cpp	3 Feb 2005 10:24:49 -0000	1.1
  +++ TestSoapHeaderBlock3Client.cpp	4 Feb 2005 17:28:53 -0000	1.2
  @@ -83,19 +83,19 @@
   
       phb->addChild(parentNode);
   
  -	printf("invoking MathOps div...\n");
  +	cout << "invoking MathOps div..." << endl;
   	try
   		{
                   iResult = ws.div(15,5);
  -                printf("%d\n", iResult);		
  +                cout << iResult << endl;		
           }
           catch (AxisException& e)
           {
  -                printf("%s\n", e.what());
  +                cout << e.what() << endl;
           }
           catch(...)
           {
  -                printf("Unknown exception\n");
  +                cout << "Unknown exception" << endl;
           }
   	
      
  @@ -115,16 +115,16 @@
   
       try
       {
  -                iResult = ws.div(15,5);
  -                printf("%d\n", iResult);
  +        iResult = ws.div(15,5);
  +        cout << iResult << endl;
       }
       catch (AxisException& e)
       {
  -        printf("%s\n", e.what());
  +        cout << e.what() << endl;
       }
       catch(...)
       {
  -        printf("Unknown exception\n");
  +        cout << "Unknown exception\n" << endl;
       }
   
   	
  
  
  
  1.2       +8 -7      ws-axis/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlockClient.cpp
  
  Index: TestSoapHeaderBlockClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlockClient.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestSoapHeaderBlockClient.cpp	3 Feb 2005 10:24:49 -0000	1.1
  +++ TestSoapHeaderBlockClient.cpp	4 Feb 2005 17:28:53 -0000	1.2
  @@ -3,6 +3,7 @@
    */
   
   #include "MathOps.hpp"
  +#include <iostream>
   
   int main(int argc, char *argv[])
   {
  @@ -57,21 +58,21 @@
   
       phb->addChild(parentNode);
   
  -    printf("invoking MathOps div...\n");
  +    cout << "invoking MathOps div..." << endl;
       //testing add function
           try
           {
                   iResult = ws.div(15,5);
  -                printf("%d\n", iResult);
  +                cout << iResult << endl;
   
           }
           catch (AxisException& e)
           {
  -                printf("%s\n", e.what());
  +                cout << e.what() << endl;
           }
           catch(...)
           {
  -                printf("Unknown exception\n");
  +                cout << "Unknown exception" << endl;
           }
   
       //test removing SOAP header block using pointer
  @@ -82,15 +83,15 @@
       try
       {
                   iResult = ws.div(15,5);
  -                printf("%d\n", iResult);
  +                cout << iResult << endl;
       }
       catch (AxisException& e)
       {
  -        printf("%s\n", e.what());
  +        cout << e.what() << endl;
       }
       catch(...)
       {
  -        printf("Unknown exception\n");
  +        cout << "Unknown exception\n" << endl;
       }
   
   
  
  
  

Mime
View raw message