ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r370430 - in /webservices/axis2/trunk/c/test/core: deployment/test_deployment.c description/test_description.c
Date Thu, 19 Jan 2006 08:31:04 GMT
Author: samisa
Date: Thu Jan 19 00:30:59 2006
New Revision: 370430

URL: http://svn.apache.org/viewcvs?rev=370430&view=rev
Log:
Added more tests

Modified:
    webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
    webservices/axis2/trunk/c/test/core/description/test_description.c

Modified: webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/deployment/test_deployment.c?rev=370430&r1=370429&r2=370430&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/deployment/test_deployment.c (original)
+++ webservices/axis2/trunk/c/test/core/deployment/test_deployment.c Thu Jan 19 00:30:59 2006
@@ -62,7 +62,7 @@
                 axis2_char_t *oname = NULL;
                 int count = 0;
 
-                for(hi2 = axis2_hash_first(ops, &env); hi2; axis2_hash_next(&env,
hi2))
+                /*for(hi2 = axis2_hash_first(ops, &env); hi2; axis2_hash_next(&env,
hi2))
                 {
                     printf ("count = %d \n", count++);
                     if (!hi2)
@@ -75,7 +75,7 @@
 					    oname = AXIS2_QNAME_GET_LOCALPART(qname, &env);
                         printf("op name = %s\n", oname);
                     }
-                }    
+                } */   
              }
              else
                 printf("ops count = zero\n");

Modified: webservices/axis2/trunk/c/test/core/description/test_description.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/description/test_description.c?rev=370430&r1=370429&r2=370430&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/description/test_description.c (original)
+++ webservices/axis2/trunk/c/test/core/description/test_description.c Thu Jan 19 00:30:59
2006
@@ -116,7 +116,12 @@
 	svc = axis2_svc_create_with_qname(&env, qname);
 
 	status = AXIS2_SVC_ADD_OP(svc, &env, op);
-	ops = AXIS2_SVC_GET_OPS(svc, &env);
+	
+    qname = axis2_qname_create(&env, "op2", NULL, NULL);	
+	op = axis2_op_create_with_qname(&env, qname);	
+	status = AXIS2_SVC_ADD_OP(svc, &env, op);
+	
+    ops = AXIS2_SVC_GET_OPS(svc, &env);
 
 	if (ops)
 		printf("SUCCESS AXIS2_SVC_GET_OPS\n");
@@ -135,10 +140,11 @@
                 axis2_char_t *oname = NULL;
                 int count = 0;
 
-                for(hi2 = axis2_hash_first(ops, &env); hi2; axis2_hash_next(&env,
hi2))
+                for(hi2 = axis2_hash_first(ops, &env); hi2; hi2 = axis2_hash_next(&env,
hi2))
                 {
                     printf ("count = %d \n", count++);
-                    if (!hi2)
+                    AXIS2_SVC_GET_OPS(svc, &env);
+                    if (!(hi2))
                         break;
                     axis2_hash_this(hi2, NULL, NULL, &op2);
                     if (op2)



Mime
View raw message