axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r386582 - in /webservices/axis2/trunk/c/test: itest/whitemesa/round1/ unit/core/context/ unit/core/deployment/ unit/core/description/ unit/core/engine/ unit/core/phaseresolver/ unit/util/ unit/wsdl/ unit/xml/om/
Date Fri, 17 Mar 2006 09:12:48 GMT
Author: nandika
Date: Fri Mar 17 01:12:44 2006
New Revision: 386582

URL: http://svn.apache.org/viewcvs?rev=386582&view=rev
Log:
warnings removed 

Modified:
    webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c
    webservices/axis2/trunk/c/test/unit/core/context/main.c
    webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.h
    webservices/axis2/trunk/c/test/unit/core/deployment/main.c
    webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c
    webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.h
    webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.c
    webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.h
    webservices/axis2/trunk/c/test/unit/core/description/description_test.h
    webservices/axis2/trunk/c/test/unit/core/description/main.c
    webservices/axis2/trunk/c/test/unit/core/description/test_flow.c
    webservices/axis2/trunk/c/test/unit/core/description/test_flow.h
    webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.c
    webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.h
    webservices/axis2/trunk/c/test/unit/core/description/test_op.c
    webservices/axis2/trunk/c/test/unit/core/description/test_op.h
    webservices/axis2/trunk/c/test/unit/core/description/test_svc.c
    webservices/axis2/trunk/c/test/unit/core/description/test_svc.h
    webservices/axis2/trunk/c/test/unit/core/engine/main.c
    webservices/axis2/trunk/c/test/unit/core/engine/test_conf.c
    webservices/axis2/trunk/c/test/unit/core/phaseresolver/main.c
    webservices/axis2/trunk/c/test/unit/core/phaseresolver/phaseresolver_test.h
    webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.c
    webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.h
    webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.c
    webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.h
    webservices/axis2/trunk/c/test/unit/util/util_hash_test.c
    webservices/axis2/trunk/c/test/unit/util/util_log_test.c
    webservices/axis2/trunk/c/test/unit/util/util_log_test.h
    webservices/axis2/trunk/c/test/unit/util/util_stream_test.c
    webservices/axis2/trunk/c/test/unit/util/util_stream_test.h
    webservices/axis2/trunk/c/test/unit/wsdl/main.c
    webservices/axis2/trunk/c/test/unit/wsdl/test_wsdl_component.c
    webservices/axis2/trunk/c/test/unit/wsdl/test_wsdl_component.h
    webservices/axis2/trunk/c/test/unit/xml/om/om_node_test.c

Modified: webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c (original)
+++ webservices/axis2/trunk/c/test/itest/whitemesa/round1/round1_client.c Fri Mar 17 01:12:44
2006
@@ -39,6 +39,7 @@
 #include <axis2_msg_ctx.h>
 #include <axis2_call.h>
 #include <ctype.h>
+#include <string.h>
 
 axis2_om_node_t *build_soap_body_content (axis2_env_t ** env,
                                           axis2_char_t * echo_operation,

Modified: webservices/axis2/trunk/c/test/unit/core/context/main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/context/main.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/context/main.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/context/main.c Fri Mar 17 01:12:44 2006
@@ -1,5 +1,5 @@
 #include "context_test.h"
-
+#include <stdio.h>
 void RunAllTests(void) {
     CuString *output = CuStringNew();
     CuSuite* suite = CuSuiteNew();

Modified: webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.h Fri Mar 17 01:12:44
2006
@@ -1,6 +1,7 @@
 #ifndef DEPLOYMENT_TEST_H
 #define DEPLOYMENT_TEST_H
 
+#undef NULL
 #include <CuTest.h>
 #include "test_phases_info.h"
 #include "test_dep_engine.h"

Modified: webservices/axis2/trunk/c/test/unit/core/deployment/main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/deployment/main.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/main.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/main.c Fri Mar 17 01:12:44 2006
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include "deployment_test.h"
 
 void RunAllTests(void) {

Modified: webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c Fri Mar 17 01:12:44
2006
@@ -1,4 +1,7 @@
 #include "test_dep_engine.h"
+#include <axis2_env.h>
+#include <stdio.h>
+#include <string.h>
 #include <axis2_dep_engine.h>
 
 void Testaxis2_dep_engine_free(CuTest *tc)
@@ -72,7 +75,7 @@
 	CuAssertPtrNotNull(tc, dep_engine);
 
     if (dep_engine)
-        axis2_dep_engine_free(dep_engine, &env);
+        AXIS2_DEP_ENGINE_FREE(dep_engine, &env);
 
     axis2_env_free(env);
 }
@@ -98,7 +101,7 @@
 
     dep_engine = axis2_dep_engine_create_with_repos_name(&env, axis2c_home);
     if (dep_engine)
-        conf_actual = axis2_dep_engine_load(dep_engine, &env);
+        conf_actual = AXIS2_DEP_ENGINE_LOAD(dep_engine, &env);
 
 	CuAssertPtrNotNull(tc, conf_actual);
 

Modified: webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.h Fri Mar 17 01:12:44
2006
@@ -1,14 +1,8 @@
 #ifndef TEST_DEP_ENGINE_H
 #define TEST_DEP_ENGINE_H
 
-#include <string.h>
-#include <stdio.h>
+#undef NULL
 #include <CuTest.h>
-#include <axis2_allocator.h>
-#include <axis2_env.h>
-#include <axis2_hash.h>
-#include <axis2_string.h>
-#include <axis2_dep_engine.h>
 
 void Testaxis2_dep_engine_free(CuTest *tc);
 void Testaxis2_dep_engine_create(CuTest *tc);

Modified: webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.c Fri Mar 17 01:12:44
2006
@@ -1,9 +1,10 @@
+#include <axis2_env.h>
 #include "test_phases_info.h"
 
 void Testaxis2_phases_info_get_op_in_phases(CuTest *tc)
 {
+    /*
     axis2_allocator_t *allocator = axis2_allocator_init (NULL);
     axis2_env_t *environment = axis2_env_create (allocator);
-
+    */
 }
-

Modified: webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.h Fri Mar 17 01:12:44
2006
@@ -1,14 +1,8 @@
 #ifndef TEST_PHASES_INFO_H
 #define TEST_PHASES_INFO_H
 
-#include <string.h>
-#include <stdio.h>
+#undef NULL
 #include <CuTest.h>
-#include <axis2_allocator.h>
-#include <axis2_env.h>
-#include <axis2_hash.h>
-#include <axis2_string.h>
-#include <axis2_phases_info.h>
 
 void Testaxis2_phases_info_get_op_in_phases(CuTest *tc);
 

Modified: webservices/axis2/trunk/c/test/unit/core/description/description_test.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/description/description_test.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/description/description_test.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/description/description_test.h Fri Mar 17 01:12:44
2006
@@ -1,6 +1,7 @@
 #ifndef DESCRIPTION_TEST_H
 #define DESCRIPTION_TEST_H
 
+#undef NULL
 #include <CuTest.h>
 #include "test_op.h"
 #include "test_svc.h"

Modified: webservices/axis2/trunk/c/test/unit/core/description/main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/description/main.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/description/main.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/description/main.c Fri Mar 17 01:12:44 2006
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include "description_test.h"
 
 void RunAllTests(void) {

Modified: webservices/axis2/trunk/c/test/unit/core/description/test_flow.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/description/test_flow.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/description/test_flow.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/description/test_flow.c Fri Mar 17 01:12:44 2006
@@ -5,6 +5,10 @@
 #include <axis2_handler_desc.h>
 #include <axis2_handler.h>
 #include <axis2_phase_rule.h>
+#include <stdio.h>
+#include <string.h>
+
+
 
 axis2_handler_desc_t * 
 test_flow_create_handler(axis2_env_t **env)
@@ -50,7 +54,7 @@
     handler_desc = test_flow_create_handler(&env);
     actual = AXIS2_FLOW_ADD_HANDLER(flow, &env, handler_desc); 
     CuAssertIntEquals(tc, expected, actual);
-    axis2_flow_free(flow,  &env);
+    AXIS2_FLOW_FREE (flow,  &env);
 
 }
 
@@ -68,7 +72,7 @@
     axis2_env_t *env = axis2_env_create (allocator);
 
     flow = axis2_flow_create(&env); 
-    actual = axis2_flow_free(flow,  &env);
+    actual = AXIS2_FLOW_FREE (flow,  &env);
     
     CuAssertIntEquals(tc, expected, actual);
 

Modified: webservices/axis2/trunk/c/test/unit/core/description/test_flow.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/description/test_flow.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/description/test_flow.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/description/test_flow.h Fri Mar 17 01:12:44 2006
@@ -1,13 +1,8 @@
 #ifndef TEST_FLOW_H
 #define TEST_FLOW_H
 
-#include <string.h>
-#include <stdio.h>
+#undef NULL
 #include <CuTest.h>
-#include <axis2_allocator.h>
-#include <axis2_env.h>
-#include <axis2_hash.h>
-#include <axis2_string.h>
 
 void Testaxis2_flow_add_handler(CuTest *tc);
 void Testaxis2_flow_free(CuTest *tc);

Modified: webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.c Fri Mar 17 01:12:44
2006
@@ -5,6 +5,7 @@
 #include <axis2_handler_desc.h>
 #include <axis2_handler.h>
 #include <axis2_phase_rule.h>
+#include <stdio.h>
 
 axis2_handler_desc_t * 
 test_handler_desc_create_handler_desc(axis2_env_t **env)
@@ -46,7 +47,7 @@
     axis2_env_t *env = axis2_env_create (allocator);
 
     handler_desc = test_handler_desc_create_handler_desc(&env); 
-    actual = axis2_handler_desc_free(handler_desc,  &env);
+    actual = AXIS2_HANDLER_DESC_FREE (handler_desc,  &env);
     
     CuAssertIntEquals(tc, expected, actual);
 

Modified: webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.h Fri Mar 17 01:12:44
2006
@@ -1,13 +1,8 @@
 #ifndef TEST_HANDLER_DESC_H
 #define TEST_HANDLER_DESC_H
 
-#include <string.h>
-#include <stdio.h>
+#undef NULL
 #include <CuTest.h>
-#include <axis2_allocator.h>
-#include <axis2_env.h>
-#include <axis2_hash.h>
-#include <axis2_string.h>
 
 void Testaxis2_handler_desc_free(CuTest *tc);
 

Modified: webservices/axis2/trunk/c/test/unit/core/description/test_op.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/description/test_op.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/description/test_op.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/description/test_op.c Fri Mar 17 01:12:44 2006
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include "test_op.h"
 
 void add_handlers_to_flow(struct axis2_flow *flow, axis2_env_t **env);

Modified: webservices/axis2/trunk/c/test/unit/core/description/test_op.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/description/test_op.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/description/test_op.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/description/test_op.h Fri Mar 17 01:12:44 2006
@@ -1,8 +1,7 @@
 #ifndef TEST_OP_H
 #define TEST_OP_H
 
-#include <string.h>
-#include <stdio.h>
+#undef NULL
 #include <CuTest.h>
 #include <axis2_allocator.h>
 #include <axis2_env.h>

Modified: webservices/axis2/trunk/c/test/unit/core/description/test_svc.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/description/test_svc.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/description/test_svc.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/description/test_svc.c Fri Mar 17 01:12:44 2006
@@ -1,6 +1,9 @@
 #include "test_svc.h"
 #include <axis2_log_default.h>
 #include <axis2_error_default.h>
+#include <axis2_env.h>
+#include <stdio.h>
+#include <string.h>
 
 struct axis2_module_desc *create_module_desc(axis2_env_t **env);
 void add_handlers_to_flow(struct axis2_flow *flow, axis2_env_t **env); 
@@ -63,14 +66,13 @@
     axis2_param_t *param = NULL;
     axis2_char_t *param_name = NULL;
     axis2_char_t *param_value = NULL;
-    axis2_param_container_t *param_container = NULL;
 
     param_name = "damitha";
     param_value = "kumarage";
     param = axis2_param_create(&env, NULL, NULL);
     AXIS2_PARAM_SET_NAME(param, &env, param_name);
     AXIS2_PARAM_SET_VALUE(param, &env, param_value);
-    AXIS2_SVC_ADD_PARAM(svc, env, param);
+    AXIS2_SVC_ADD_PARAM(svc, &env, param);
     
 
     CuAssertIntEquals(tc, expected, actual);

Modified: webservices/axis2/trunk/c/test/unit/core/description/test_svc.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/description/test_svc.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/description/test_svc.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/description/test_svc.h Fri Mar 17 01:12:44 2006
@@ -1,8 +1,7 @@
 #ifndef TEST_SVC_H
 #define TEST_SVC_H
 
-#include <string.h>
-#include <stdio.h>
+#undef NULL
 #include <CuTest.h>
 #include <axis2_allocator.h>
 #include <axis2_env.h>

Modified: webservices/axis2/trunk/c/test/unit/core/engine/main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/engine/main.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/engine/main.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/engine/main.c Fri Mar 17 01:12:44 2006
@@ -1,4 +1,5 @@
 #include "engine_test.h"
+#include <stdio.h>
 
 void RunAllTests(void) {
     CuString *output = CuStringNew();

Modified: webservices/axis2/trunk/c/test/unit/core/engine/test_conf.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/engine/test_conf.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/engine/test_conf.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/engine/test_conf.c Fri Mar 17 01:12:44 2006
@@ -1,4 +1,5 @@
 #include "test_conf.h"
+#include <stdio.h>
 
 void Testaxis2_conf_set_default_dispatchers(CuTest *tc)
 {
@@ -32,7 +33,7 @@
         int sizej = 0;
         
         phase = AXIS2_ARRAY_LIST_GET(in_phases, &env, i);
-        handlers = axis2_phase_get_handlers(phase, &env);
+        handlers = AXIS2_PHASE_GET_HANDLERS (phase, &env);
         sizej = AXIS2_ARRAY_LIST_SIZE(handlers, &env);
         for(j = 0; j < sizej; j++)
         {

Modified: webservices/axis2/trunk/c/test/unit/core/phaseresolver/main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/phaseresolver/main.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/phaseresolver/main.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/phaseresolver/main.c Fri Mar 17 01:12:44 2006
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include "phaseresolver_test.h"
 
 void RunAllTests(void) {

Modified: webservices/axis2/trunk/c/test/unit/core/phaseresolver/phaseresolver_test.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/phaseresolver/phaseresolver_test.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/phaseresolver/phaseresolver_test.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/phaseresolver/phaseresolver_test.h Fri Mar 17
01:12:44 2006
@@ -1,6 +1,7 @@
 #ifndef PHASERESOLVER_TEST_H
 #define PHASERESOLVER_TEST_H
 
+#undef NULL
 #include <CuTest.h>
 #include "test_resolver.h"
 #include "test_phase_holder.h"

Modified: webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.c Fri Mar 17
01:12:44 2006
@@ -1,3 +1,6 @@
+#include <axis2_env.h>
+#include <string.h>
+#include <stdio.h>
 #include "test_phase_holder.h"
 #include <axis2_array_list.h>
 #include <axis2_phase_holder.h>
@@ -23,7 +26,7 @@
 
     phases = get_phases(&env);
     phase_holder = axis2_phase_holder_create_with_phases(&env, phases); 
-    actual = axis2_phase_holder_free(phase_holder, &env);
+    actual = AXIS2_PHASE_HOLDER_FREE(phase_holder, &env);
     
     CuAssertIntEquals(tc, expected, actual);
 

Modified: webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.h Fri Mar 17
01:12:44 2006
@@ -1,15 +1,8 @@
 #ifndef TEST_PHASE_HOLDER_H
 #define TEST_PHASE_HOLDER_H
 
-#include <string.h>
-#include <stdio.h>
+#undef NULL
 #include <CuTest.h>
-#include <axis2_allocator.h>
-#include <axis2_env.h>
-#include <axis2_hash.h>
-#include <axis2_string.h>
-#include <axis2_phase.h>
-#include <axis2_flow.h>
 
 void Testaxis2_phase_holder_free(CuTest *tc);
 

Modified: webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.c Fri Mar 17 01:12:44
2006
@@ -1,8 +1,13 @@
 #include "test_resolver.h"
+#include <axis2_env.h>
+#include <axis2_log_default.h>
+#include <axis2_error_default.h>
 #include <axis2_phase_resolver.h>
 #include <axis2_module_desc.h>
 #include <axis2_op.h>
 #include <axis2_flow.h>
+#include <stdio.h>
+#include <string.h>
 
 void add_handlers_to_flow(struct axis2_flow *flow, axis2_env_t **env);
 axis2_array_list_t *get_op_in_phases(axis2_env_t **env);
@@ -33,7 +38,7 @@
     axis2_error_init();
 
     resolver = axis2_phase_resolver_create(&env); 
-    actual = axis2_phase_resolver_free(resolver,  &env);
+    actual = AXIS2_PHASE_RESOLVER_FREE(resolver,  &env);
     
     CuAssertIntEquals(tc, expected, actual);
 
@@ -100,8 +105,8 @@
     AXIS2_FLOW_ADD_HANDLER(flow, env, handler_desc);
     
     rule = axis2_phase_rule_create(env, AXIS2_PHASE_POLICY_DETERMINATION); 
-    axis2_phase_rule_set_before(rule, env, "before");
-    axis2_phase_rule_set_after(rule, env, "after");
+    AXIS2_PHASE_RULE_SET_BEFORE (rule, env, "before");
+    AXIS2_PHASE_RULE_SET_AFTER (rule, env, "after");
     qname = axis2_qname_create(env, "handler2", NULL, NULL);
     handler_desc = axis2_handler_desc_create_with_qname(env, qname);
     AXIS2_HANDLER_DESC_SET_RULES(handler_desc, env, rule);
@@ -111,8 +116,8 @@
     AXIS2_FLOW_ADD_HANDLER(flow, env, handler_desc);
     
     rule = axis2_phase_rule_create(env, AXIS2_PHASE_POLICY_DETERMINATION);
-    axis2_phase_rule_set_before(rule, env, "before");
-    axis2_phase_rule_set_after(rule, env, "after");
+    AXIS2_PHASE_RULE_SET_BEFORE (rule, env, "before");
+    AXIS2_PHASE_RULE_SET_AFTER (rule, env, "after");
     qname = axis2_qname_create(env, "handler3", NULL, NULL);
     handler_desc = axis2_handler_desc_create_with_qname(env, qname);
     AXIS2_HANDLER_DESC_SET_RULES(handler_desc, env, rule);

Modified: webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.h (original)
+++ webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.h Fri Mar 17 01:12:44
2006
@@ -1,13 +1,8 @@
 #ifndef TEST_RESOLVER_H
 #define TEST_RESOLVER_H
 
-#include <string.h>
-#include <stdio.h>
+#undef NULL
 #include <CuTest.h>
-#include <axis2_allocator.h>
-#include <axis2_env.h>
-#include <axis2_hash.h>
-#include <axis2_string.h>
 
 struct axis2_flow;
 struct axis2_op;

Modified: webservices/axis2/trunk/c/test/unit/util/util_hash_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_hash_test.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_hash_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_hash_test.c Fri Mar 17 01:12:44 2006
@@ -23,7 +23,7 @@
     axis2_hash_index_t *i = 0;
     void *v = NULL;
 
-    char *key1 = "key1";
+    const char *key1 = "key1";
 
     actual = (a *) AXIS2_MALLOC(environment->allocator, sizeof (a));
 
@@ -33,7 +33,7 @@
 
     ht = axis2_hash_make (&environment);
 
-    axis2_hash_set (ht, key1, AXIS2_HASH_KEY_STRING, actual);
+    axis2_hash_set (ht, &key1, AXIS2_HASH_KEY_STRING, actual);
 
     for (i = axis2_hash_first (ht, &environment); i; i = axis2_hash_next (&environment,
i))
     {
@@ -61,7 +61,7 @@
 
     axis2_hash_index_t *index_i= 0;
     void *v = NULL;
-    void *k = NULL;
+    char *k = NULL;
 
     char *key = NULL;
     char *key1 = "key1";
@@ -93,14 +93,19 @@
     do 
     {
         axis2_hash_this (index_i, &k, NULL, &v);
-        key = (char *) k;
+        
+        key = (char *)k;
+        
         if(0 == AXIS2_STRCMP(key, "key2"))
         {
             actual = (a *) v;
             break;
         }
+        
         index_i = axis2_hash_next (&environment, index_i);
+    
     }while(NULL != index_i);
+    
     printf("actual:%s\n",  actual->value);
     CuAssertStrEquals(tc, expected->value, actual->value);
     free(expected->value);
@@ -113,12 +118,4 @@
     free(entry2->value);
     free(entry2);
     axis2_hash_free(ht, &environment);
-    
-    
-    
-    
-    
-    
-    
-    
 }

Modified: webservices/axis2/trunk/c/test/unit/util/util_log_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_log_test.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_log_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_log_test.c Fri Mar 17 01:12:44 2006
@@ -1,9 +1,8 @@
 #include <axis2_env.h>
 #include <axis2_log_default.h>
 #include <axis2_error_default.h>
-#include "util_log_test.h"
+#include <util_log_test.h>
 #include <axis2_stream.h>
-#include <string.h>
 #include <stdio.h>
 
 void Testaxis2_log_write(CuTest *tc) 

Modified: webservices/axis2/trunk/c/test/unit/util/util_log_test.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_log_test.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_log_test.h (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_log_test.h Fri Mar 17 01:12:44 2006
@@ -3,7 +3,5 @@
 
 #undef NULL
 #include <CuTest.h>
-
 void Testaxis2_log_write(CuTest *tc);
-
 #endif /* UTIL_LOG_TEST_H*/

Modified: webservices/axis2/trunk/c/test/unit/util/util_stream_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_stream_test.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_stream_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_stream_test.c Fri Mar 17 01:12:44 2006
@@ -3,7 +3,8 @@
 #include <axis2_env.h>
 #include <axis2_error_default.h>
 #include <axis2_log_default.h>
-#include <string.h>
+#include <stdlib.h>
+
 void Testaxis2_stream_write(CuTest *tc) 
 {
     char actual[10];
@@ -18,7 +19,7 @@
 
     axis2_stream_t *stream = axis2_stream_create_basic(&env);
     char *expected = (char*) strdup("aaaaaaaaa");
-    char *write_array = (char*)strdup("aaaaaaaaa"); 
+    char *write_array = (char*) strdup("aaaaaaaaa"); 
     AXIS2_STREAM_WRITE(stream, &env, write_array, 10);
     AXIS2_STREAM_READ(stream, &env, actual, 10);
     CuAssertStrEquals(tc, expected, actual);

Modified: webservices/axis2/trunk/c/test/unit/util/util_stream_test.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_stream_test.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_stream_test.h (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_stream_test.h Fri Mar 17 01:12:44 2006
@@ -4,7 +4,6 @@
 #undef NULL
 #include <CuTest.h>
 
-
 void Testaxis2_stream_write(CuTest *tc);
 
 #endif /* UTIL_STREAM_TEST_H*/

Modified: webservices/axis2/trunk/c/test/unit/wsdl/main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/wsdl/main.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/wsdl/main.c (original)
+++ webservices/axis2/trunk/c/test/unit/wsdl/main.c Fri Mar 17 01:12:44 2006
@@ -1,4 +1,5 @@
 #include "wsdl_test.h"
+#include <stdio.h>
 
 void RunAllTests(void) 
 {

Modified: webservices/axis2/trunk/c/test/unit/wsdl/test_wsdl_component.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/wsdl/test_wsdl_component.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/wsdl/test_wsdl_component.c (original)
+++ webservices/axis2/trunk/c/test/unit/wsdl/test_wsdl_component.c Fri Mar 17 01:12:44 2006
@@ -4,6 +4,7 @@
 #include <axis2_hash.h>
 #include <axis2_array_list.h>
 #include <axis2_property.h>
+#include <stdio.h>
 
 axis2_array_list_t *
 get_module_list(axis2_env_t **env)

Modified: webservices/axis2/trunk/c/test/unit/wsdl/test_wsdl_component.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/wsdl/test_wsdl_component.h?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/wsdl/test_wsdl_component.h (original)
+++ webservices/axis2/trunk/c/test/unit/wsdl/test_wsdl_component.h Fri Mar 17 01:12:44 2006
@@ -1,10 +1,8 @@
 #ifndef TEST_WSDL_COMPONENT_H
 #define TEST_WSDL_COMPONENT_H
 
+#undef NULL
 #include <CuTest.h>
-#include <axis2_allocator.h>
-#include <axis2_env.h>
-#include "axis2_wsdl_component.h"
 
 void Testaxis2_wsdl_component_set_component_properties(CuTest *tc);
 

Modified: webservices/axis2/trunk/c/test/unit/xml/om/om_node_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/xml/om/om_node_test.c?rev=386582&r1=386581&r2=386582&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/xml/om/om_node_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/xml/om/om_node_test.c Fri Mar 17 01:12:44 2006
@@ -29,7 +29,6 @@
     axis2_om_node_t *child;
     axis2_env_t *env;
     axis2_allocator_t *allocator;
-    axis2_om_node_t *actual;
     allocator = axis2_allocator_init(NULL);
     env = axis2_env_create(allocator);
     



Mime
View raw message