You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by pr...@apache.org on 2005/11/09 17:51:42 UTC

svn commit: r332083 - in /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp: XSDElementClient.cpp XSDElementNilClient.cpp

Author: prestonf
Date: Wed Nov  9 08:51:39 2005
New Revision: 332083

URL: http://svn.apache.org/viewcvs?rev=332083&view=rev
Log:
Final fix for UT_XSD_ElementNil and UT_XSD_Element tests.

Modified:
    webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp
    webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp?rev=332083&r1=332082&r2=332083&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp Wed Nov  9 08:51:39 2005
@@ -197,14 +197,14 @@
 		cout << "base64Binary size=" << b64Result.__size << endl;
 		if( b64Result.__size > 0)
 		{
-			cout << "base64Binary data=" << asciiToString((char *)b64Result.__ptr) << endl;
+			cout << "base64Binary data=" << asciiToStringOfLength((char *)b64Result.__ptr, b64Result.__size) << endl;
 		}
 
 		hexResult = ws->setGetHexBinary(hexTest);
 		cout << "hexBinary size=" << hexResult.__size << endl;
 		if( hexResult.__size > 0)
 		{
-			cout << "hexBinary data=" << asciiToString((char *)hexResult.__ptr) << endl;
+			cout << "hexBinary data=" << asciiToStringOfLength((char *)hexResult.__ptr, hexResult.__size) << endl;
 		}
 
 		bSuccess = true;

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp?rev=332083&r1=332082&r2=332083&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp Wed Nov  9 08:51:39 2005
@@ -278,7 +278,7 @@
 		cout << "base64Binary size=" << b64Result->__size << endl;
 		if( b64Result->__size > 0)
 		{
-			cout << "base64Binary data=" << asciiToString((char *)b64Result->__ptr) << endl;
+			cout << "base64Binary data=" << asciiToStringOfLength((char *)b64Result->__ptr, b64Result->__size) << endl;
 		}
 		b64Result = ws->setGetBase64BinaryType(NULL);
 		if(b64Result)
@@ -290,7 +290,7 @@
 		cout << "hexBinary size=" << hexResult->__size << endl;
 		if( hexResult->__size > 0)
 		{
-			cout << "hexBinary data=" << asciiToString((char *)hexResult->__ptr) << endl;
+			cout << "hexBinary data=" << asciiToStringOfLength((char *)hexResult->__ptr, hexResult->__size) << endl;
 		}
 		hexResult = ws->setGetHexBinary(&hexTest);
 		if(hexResult)