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 da...@apache.org on 2006/01/23 09:26:20 UTC
svn commit: r371490 - in /webservices/axis2/trunk/c/test/unit:
core/deployment/ core/description/ core/phaseresolver/ util/
Author: damitha
Date: Mon Jan 23 00:26:05 2006
New Revision: 371490
URL: http://svn.apache.org/viewcvs?rev=371490&view=rev
Log:
Added test starting messages
Modified:
webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.c
webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c
webservices/axis2/trunk/c/test/unit/core/description/test_flow.c
webservices/axis2/trunk/c/test/unit/core/description/test_handler_desc.c
webservices/axis2/trunk/c/test/unit/core/description/test_op.c
webservices/axis2/trunk/c/test/unit/core/description/test_svc.c
webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_phase_holder.c
webservices/axis2/trunk/c/test/unit/core/phaseresolver/test_resolver.c
webservices/axis2/trunk/c/test/unit/util/util_array_list_test.c
webservices/axis2/trunk/c/test/unit/util/util_dir_handler_test.c
webservices/axis2/trunk/c/test/unit/util/util_linked_list_test.c
webservices/axis2/trunk/c/test/unit/util/util_log_test.c
Modified: webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.c?rev=371490&r1=371489&r2=371490&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.c Mon Jan 23 00:26:05 2006
@@ -17,7 +17,7 @@
*/
SUITE_ADD_TEST(suite, Testaxis2_dep_engine_free );
SUITE_ADD_TEST(suite,Testaxis2_dep_engine_create);
- /*SUITE_ADD_TEST(suite,Testaxis2_dep_engine_create_with_repos_name);*/
+ SUITE_ADD_TEST(suite,Testaxis2_dep_engine_create_with_repos_name);
SUITE_ADD_TEST(suite,Testaxis2_dep_engine_load);
return suite;
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=371490&r1=371489&r2=371490&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 Mon Jan 23 00:26:05 2006
@@ -8,6 +8,10 @@
axis2_status_t expected = AXIS2_SUCCESS;
axis2_char_t *axis2c_home = NULL;
+ printf("**************************************\n");
+ printf("testing axis2_dep_engine_free method \n");
+ printf("**************************************\n");
+
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
@@ -20,7 +24,6 @@
return;
}
actual = AXIS2_DEP_ENGINE_FREE(dep_engine, &env);
- printf("ok1");
CuAssertIntEquals(tc, expected, actual);
axis2_env_free(env);
}
@@ -31,6 +34,11 @@
axis2_env_t *env;
axis2_allocator_t *allocator;
axis2_dep_engine_t *dep_engine = NULL;
+
+ printf("****************************************\n");
+ printf("testing axis2_dep_engine_create method \n");
+ printf("****************************************\n");
+
allocator = axis2_allocator_init(NULL);
env = axis2_env_create(allocator);
@@ -49,6 +57,11 @@
axis2_allocator_t *allocator;
axis2_dep_engine_t *dep_engine = NULL;
axis2_char_t *axis2c_home = NULL;
+
+ printf("********************************************************\n");
+ printf("testing axis2_dep_engine_create_with_repos_name method \n");
+ printf("********************************************************\n");
+
allocator = axis2_allocator_init(NULL);
env = axis2_env_create(allocator);
@@ -56,10 +69,10 @@
dep_engine = axis2_dep_engine_create_with_repos_name(&env,axis2c_home);
- CuAssertPtrNotNull(tc,dep_engine);
+ 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);
}
@@ -72,13 +85,16 @@
axis2_allocator_t *allocator;
axis2_conf_t *conf_actual = NULL;
axis2_char_t *axis2c_home = NULL;
- axis2_status_t actual = AXIS2_FAILURE;
+ axis2_dep_engine_t *dep_engine = NULL;
+
+ printf("**************************************\n");
+ printf("testing axis2_dep_engine_load method \n");
+ printf("**************************************\n");
+
allocator = axis2_allocator_init(NULL);
env = axis2_env_create(allocator);
axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
-
- axis2_dep_engine_t *dep_engine = NULL;
dep_engine = axis2_dep_engine_create_with_repos_name(&env,axis2c_home);
if (dep_engine)
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=371490&r1=371489&r2=371490&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 Mon Jan 23 00:26:05 2006
@@ -13,7 +13,11 @@
axis2_handler_t *handler = NULL;
axis2_qname_t *qname = NULL;
axis2_phase_rule_t *rule = NULL;
-
+
+ printf("******************************************\n");
+ printf("testing axis2_flow_create_handler method \n");
+ printf("******************************************\n");
+
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");
@@ -35,6 +39,10 @@
axis2_flow_t *flow = NULL;
axis2_handler_desc_t *handler_desc = NULL;
+ printf("***************************************\n");
+ printf("testing axis2_flow_add_handler method \n");
+ printf("***************************************\n");
+
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
@@ -51,6 +59,10 @@
axis2_status_t actual = AXIS2_FAILURE;
axis2_status_t expected = AXIS2_TRUE;
axis2_flow_t *flow = NULL;
+
+ printf("********************************\n");
+ printf("testing axis2_flow_free method \n");
+ printf("********************************\n");
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
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=371490&r1=371489&r2=371490&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 Mon Jan 23 00:26:05 2006
@@ -13,7 +13,11 @@
axis2_handler_t *handler = NULL;
axis2_qname_t *qname = NULL;
axis2_phase_rule_t *rule = NULL;
-
+
+ printf("*******************************************************\n");
+ printf("testing axis2_handler_desc_create_handler_desc method \n");
+ printf("*******************************************************\n");
+
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");
@@ -33,6 +37,10 @@
axis2_status_t actual = AXIS2_FAILURE;
axis2_status_t expected = AXIS2_TRUE;
axis2_handler_desc_t *handler_desc = NULL;
+
+ printf("****************************************\n");
+ printf("testing axis2_handler_desc_free method \n");
+ printf("****************************************\n");
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
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=371490&r1=371489&r2=371490&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 Mon Jan 23 00:26:05 2006
@@ -10,6 +10,10 @@
axis2_status_t actual = AXIS2_FAILURE;
axis2_op_t *op = NULL;
+ printf("*****************************************************\n");
+ printf("testing axis2_op_set_remaining_phases_inflow method \n");
+ printf("*****************************************************\n");
+
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
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=371490&r1=371489&r2=371490&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 Mon Jan 23 00:26:05 2006
@@ -13,7 +13,11 @@
axis2_status_t actual = AXIS2_FAILURE;
struct axis2_flow *inflow = NULL;
axis2_qname_t *svc_qname = NULL;
-
+
+ printf("**************************************\n");
+ printf("testing axis2_svc_add_module_ops method \n");
+ printf("**************************************\n");
+
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
@@ -131,6 +135,10 @@
axis2_char_t *expected = NULL;
axis2_char_t *actual = NULL;
+ printf("********************************************\n");
+ printf("testing axis2_svc_create_with_qname method \n");
+ printf("********************************************\n");
+
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
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=371490&r1=371489&r2=371490&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 Mon Jan 23 00:26:05 2006
@@ -14,6 +14,10 @@
axis2_phase_holder_t *phase_holder = NULL;
axis2_array_list_t *phases = NULL;
+ printf("****************************************\n");
+ printf("testing axis2_phase_holder_free method \n");
+ printf("****************************************\n");
+
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
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=371490&r1=371489&r2=371490&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 Mon Jan 23 00:26:05 2006
@@ -17,6 +17,10 @@
axis2_status_t expected = AXIS2_TRUE;
axis2_phase_resolver_t *resolver = NULL;
+ printf("******************************************\n");
+ printf("testing axis2_phase_resolver_free method \n");
+ printf("******************************************\n");
+
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
@@ -36,6 +40,10 @@
axis2_status_t expected = AXIS2_SUCCESS;
axis2_status_t actual = AXIS2_FAILURE;
+ printf("*********************************************************\n");
+ printf("testing axis2_phase_resolver_engage_module_to_op method \n");
+ printf("*********************************************************\n");
+
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
axis2_op_t *optr = axis2_op_create(&env);
Modified: webservices/axis2/trunk/c/test/unit/util/util_array_list_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_array_list_test.c?rev=371490&r1=371489&r2=371490&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_array_list_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_array_list_test.c Mon Jan 23 00:26:05 2006
@@ -7,12 +7,16 @@
void Testaxis2_array_list_get(CuTest *tc)
{
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- axis2_env_t *env = axis2_env_create(allocator);
-
axis2_array_list_t *al;
a *actual, *expected;
a *actual2;
+
+ printf("*************************************\n");
+ printf("testing axis2_array_list_get method \n");
+ printf("*************************************\n");
+
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ axis2_env_t *env = axis2_env_create(allocator);
actual = (a *) AXIS2_MALLOC(env->allocator, sizeof (a));
actual2 = (a *) AXIS2_MALLOC(env->allocator, sizeof (a));
Modified: webservices/axis2/trunk/c/test/unit/util/util_dir_handler_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_dir_handler_test.c?rev=371490&r1=371489&r2=371490&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_dir_handler_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_dir_handler_test.c Mon Jan 23 00:26:05 2006
@@ -4,11 +4,6 @@
void Testaxis2_dir_handler_list_dir(CuTest *tc)
{
- puts("testing axis2_dir_handler_list_dir\n");
-
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- axis2_env_t *env = axis2_env_create(allocator);
-
axis2_char_t *pathname = NULL;
axis2_array_list_t *file_list = NULL;
int size = 0;
@@ -17,6 +12,13 @@
int i = 0;
axis2_char_t *axis2c_home = NULL;
+ printf("******************************************************************\n");
+ printf("testing axis2_dir_handler_list_services_or_modules_in_dir method \n");
+ printf("******************************************************************\n");
+
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ axis2_env_t *env = axis2_env_create(allocator);
+
expected = AXIS2_STRDUP("libaxis2_util.so", &env);
axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
pathname = AXIS2_STRACAT (axis2c_home, "/lib", &env);
Modified: webservices/axis2/trunk/c/test/unit/util/util_linked_list_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_linked_list_test.c?rev=371490&r1=371489&r2=371490&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_linked_list_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_linked_list_test.c Mon Jan 23 00:26:05 2006
@@ -7,22 +7,22 @@
void Testaxis2_linked_list_get(CuTest *tc)
{
- puts("testing axis2_linked_list_get\n");
-
- axis2_allocator_t *allocator = axis2_allocator_init (NULL);
- axis2_env_t *env = axis2_env_create(allocator);
-
axis2_linked_list_t *al;
a *actual, *expected;
a *actual2;
+
+ printf("**************************************\n");
+ printf("testing axis2_linked_list_get method \n");
+ printf("**************************************\n");
+
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ axis2_env_t *env = axis2_env_create(allocator);
actual = (a *) AXIS2_MALLOC(env->allocator, sizeof (a));
actual2 = (a *) AXIS2_MALLOC(env->allocator, sizeof (a));
-
actual->value = AXIS2_STRDUP("value1", &env);
actual2->value = AXIS2_STRDUP("value2", &env);
-
al = axis2_linked_list_create (&env);
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=371490&r1=371489&r2=371490&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 Mon Jan 23 00:26:05 2006
@@ -5,6 +5,11 @@
printf("testing axis2_log_write\n");
char actual[10];
+
+ printf("************************\n");
+ printf("testing axis2_log_write \n");
+ printf("************************\n");
+
axis2_allocator_t *allocator = axis2_allocator_init(NULL);
axis2_error_t *error = axis2_error_create(allocator);
axis2_log_t *log = axis2_log_create (allocator, NULL);