You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ha...@apache.org on 2005/02/23 14:03:48 UTC
cvs commit: ws-axis/c/tests/auto_build/testcases/output IHeaderBlockTest4.expected
hawkeye 2005/02/23 05:03:48
Modified: c/src/soap HeaderBlock.cpp Attribute.cpp
c/tests/auto_build/testcases/client/cpp
IHeaderBlockTest4Client.cpp
c/tests/auto_build/testcases/output
IHeaderBlockTest4.expected
Log:
Updated so that IHeaderBlockTest4 works. Changed nothing substantial in the actual test and minor modifications to
Atribute e.g. checking for NULL
Revision Changes Path
1.53 +18 -1 ws-axis/c/src/soap/HeaderBlock.cpp
Index: HeaderBlock.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/HeaderBlock.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- HeaderBlock.cpp 22 Feb 2005 17:10:41 -0000 1.52
+++ HeaderBlock.cpp 23 Feb 2005 13:03:48 -0000 1.53
@@ -775,10 +775,27 @@
BasicNode* HeaderBlock::createChild(NODE_TYPE eNODE_TYPE,
AxisChar *pachLocalName,
- AxisChar *pachPrefix, AxisChar *pachUri,
+ AxisChar *pachPrefix,
+ AxisChar *pachUri,
AxisChar *pachValue)
{
BasicNode* pBasicNode = NULL;
+ if(!pachLocalName)
+ {
+ pachLocalName="";
+ }
+ if(!pachPrefix)
+ {
+ pachPrefix="";
+ }
+ if(!pachUri)
+ {
+ pachUri="";
+ }
+ if(!pachValue)
+ {
+ pachValue="";
+ }
do
{
1.33 +4 -1 ws-axis/c/src/soap/Attribute.cpp
Index: Attribute.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/Attribute.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- Attribute.cpp 22 Feb 2005 16:51:02 -0000 1.32
+++ Attribute.cpp 23 Feb 2005 13:03:48 -0000 1.33
@@ -129,7 +129,10 @@
Attribute::Attribute(const AxisChar *localname, const AxisChar *prefix,
const AxisChar *value)
{
- Attribute(localname, prefix, "", value);
+ m_localname= localname;
+ m_prefix= prefix;
+ m_uri= "";
+ m_value= value;
}
Attribute::Attribute(const Attribute& rCopy)
1.4 +2 -2 ws-axis/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest4Client.cpp
Index: IHeaderBlockTest4Client.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest4Client.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- IHeaderBlockTest4Client.cpp 18 Feb 2005 13:17:59 -0000 1.3
+++ IHeaderBlockTest4Client.cpp 23 Feb 2005 13:03:48 -0000 1.4
@@ -42,7 +42,7 @@
BasicNode * Bnode6=phb->createChild(ELEMENT_NODE);
Bnode6->setLocalName("Project");
IAttribute *a=Bnode6->createAttribute("Type","Open Source");
- cout << "Project Type=" << a->getValue() << endl;
+ cout <<"Project Type=" << a->getValue() << endl;
BasicNode * Bnode7=phb->createChild(CHARACTER_NODE);
Bnode7->setValue("AXISCPP");
BasicNode * Bnode4a=phb->createChild(ELEMENT_NODE,"LastPartChild","","http://ws.apache.org/", NULL);
@@ -54,7 +54,7 @@
Bnode1->addChild(Bnode4);
phb->addChild(Bnode1);
phb->addChild(Bnode6);
- BasicNode * Bnode8=phb->createChild(CHARACTER_NODE,"","","","This is a test message ");
+ BasicNode * Bnode8=phb->createChild(CHARACTER_NODE,"","","","This is a test message");
cout << phb->addChild(Bnode8)<<endl;
cout<<"AddChild returned "<< phb->addChild(NULL) << " For NULL Value "<< endl;
cout << "No Of Children = " << phb->getNoOfChildren()<<endl;
1.3 +1 -1 ws-axis/c/tests/auto_build/testcases/output/IHeaderBlockTest4.expected
Index: IHeaderBlockTest4.expected
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/output/IHeaderBlockTest4.expected,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- IHeaderBlockTest4.expected 18 Feb 2005 13:26:14 -0000 1.2
+++ IHeaderBlockTest4.expected 23 Feb 2005 13:03:48 -0000 1.3
@@ -2,7 +2,7 @@
NULL Returned for Character_node
Project Type=Open Source
0
-AddChild returned 0 For NULL Value
+AddChild returned -1 For NULL Value
No Of Children = 3
First Node Name = Name
Second Node Name=Project Value = AXISCPP