axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmano...@apache.org
Subject cvs commit: ws-axis/c/tests/auto_build/testcases/client/cpp XSD_anyURIClient.cpp
Date Mon, 08 Aug 2005 13:11:13 GMT
cmanohar    2005/08/08 06:11:13

  Modified:    c/tests/auto_build/testcases/client/cpp XSD_anyURIClient.cpp
  Log:
  
  
  Revision  Changes    Path
  1.5       +2 -125    ws-axis/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp
  
  Index: XSD_anyURIClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XSD_anyURIClient.cpp	13 Jul 2005 15:19:09 -0000	1.4
  +++ XSD_anyURIClient.cpp	8 Aug 2005 13:11:13 -0000	1.5
  @@ -36,7 +36,7 @@
           char emptyanyURI[1] = "";
           xsd__anyURI emptyInput = new char[1];
           strcpy (emptyInput, emptyanyURI);
  -        char simpleanyURI[25] = "A simple test message!";
  +		char simpleanyURI[25] = "http://www.xyz.com";
           xsd__anyURI input = new char[25];
           strcpy (input, simpleanyURI);
   
  @@ -78,108 +78,6 @@
           }
           delete [] emptyInput;
   
  -        // Test non-nillable element with XML reserved characters
  -        char reservedCharactersanyURI[] = "<>&\"\'";
  -        xsd__anyURI reservedCharactersInput = reservedCharactersanyURI;
  -        result = ws->asNonNillableElement(reservedCharactersInput);
  -        if (result)
  -        {
  -            if (*result)
  -            {
  -                cout << "non-nillable element with XML reserved characters=" <<
result << endl;
  -            }
  -            else
  -            {
  -                cout << "non-nillable element with XML reserved characters=<empty>"
<< endl;
  -            }
  -        }
  -        else
  -        {
  -            cout << "non-nillable element with XML reserved characters=<nil>"
<< endl;
  -        }
  -
  -        // Test non-nillable element with XML reserved characters
  -        char whitespaceanyURI[] = "  \t\r\nsome text \t\r\nmore text \t\r\n";
  -        xsd__anyURI whitespaceInput = whitespaceanyURI;
  -        result = ws->asNonNillableElement(whitespaceInput);
  -        if (result)
  -        {
  -            if (*result)
  -            {
  -                cout << "non-nillable element with whitespace characters=\"" <<
result << "\"" << endl;
  -            }
  -            else
  -            {
  -                cout << "non-nillable element with whitespace characters=<empty>"
<< endl;
  -            }
  -        }
  -        else
  -        {
  -            cout << "non-nillable element with whitespace characters=<nil>"
<< endl;
  -        }
  -
  -        // Test nillable element, with a value
  -        input = new char[25];
  -        strcpy (input, simpleanyURI);
  -        xsd__anyURI nillableResult = ws->asNillableElement(input);
  -        if (nillableResult)
  -        {
  -            if (*nillableResult)
  -            {
  -                cout << "nillable element=" << nillableResult << endl;
  -            }
  -            else
  -            {
  -                cout << "nillable element=<empty>" << endl;
  -            }
  -            delete nillableResult;
  -        }
  -        else
  -        {
  -            cout << "nillable element=<nil>" << endl;
  -        }
  -        delete [] input;
  -
  -        // Test empty nillable element
  -        emptyInput = new char[1];
  -        strcpy (emptyInput, emptyanyURI);
  -        nillableResult = ws->asNillableElement(emptyInput);
  -        if (nillableResult)
  -        {
  -            if (*nillableResult)
  -            {
  -                cout << "empty nillable element=" << nillableResult <<
endl;
  -            }
  -            else
  -            {
  -                cout << "empty nillable element=<empty>" << endl;
  -            }
  -            delete nillableResult;
  -        }
  -        else
  -        {
  -            cout << "empty nillable element=<nil>" << endl;
  -        }
  -        delete [] emptyInput;
  -
  -        // Test nillable element, with nil
  -        nillableResult = ws->asNillableElement(NULL);
  -        if (nillableResult)
  -        {
  -            if (*nillableResult)
  -            {
  -                cout << "nil element=" << nillableResult << endl;
  -            }
  -            else
  -            {
  -                cout << "nil element=<empty>" << endl;
  -            }
  -            delete nillableResult;
  -        }
  -        else
  -        {
  -            cout << "nil element=<nil>" << endl;
  -        }
   
           // Test required attribute
           input = new char[25];
  @@ -204,28 +102,7 @@
           }
           delete requiredAttributeResult;
   
  -        // Test empty required attribute
  -        emptyInput = new char[1];
  -        strcpy (emptyInput, emptyanyURI);
  -        requiredAttributeInput;
  -        requiredAttributeInput.setrequiredAttribute(emptyInput);
  -        requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
  -        if (requiredAttributeResult->getrequiredAttribute())
  -        {
  -            if (*(requiredAttributeResult->getrequiredAttribute()))
  -            {
  -                cout << "empty required attribute=" << requiredAttributeResult->getrequiredAttribute()
<< endl;
  -            }
  -            else
  -            {
  -                cout << "empty required attribute=<empty>" << endl;
  -            }
  -        }
  -        else
  -        {
  -            cout << "empty required attribute=<nil>" << endl;
  -        }
  -        delete requiredAttributeResult;
  + 
   
   /* Optional Attributes currently unsupported by WSDL2Ws
    * Exact coding of this section may change depending on chosen implementation
  
  
  

Mime
View raw message