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/12 12:12:18 UTC
svn commit: r368342 - in /webservices/axis2/trunk/c: include/
modules/core/deployment/ modules/core/description/ modules/platforms/unix/
modules/util/ test/core/ test/core/description/ test/core/engine/
test/unit/core/deployment/
Author: damitha
Date: Thu Jan 12 03:11:46 2006
New Revision: 368342
URL: http://svn.apache.org/viewcvs?rev=368342&view=rev
Log:
Added more tests. Fixed several bugs found during writing
the tests
Added:
webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c
webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.h
Modified:
webservices/axis2/trunk/c/include/axis2_conf_builder.h
webservices/axis2/trunk/c/modules/core/deployment/axis2_deployment.h
webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c
webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c
webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c
webservices/axis2/trunk/c/modules/core/description/param.c
webservices/axis2/trunk/c/modules/platforms/unix/axis2_unix.h
webservices/axis2/trunk/c/modules/util/qname.c
webservices/axis2/trunk/c/test/core/Makefile.am
webservices/axis2/trunk/c/test/core/description/Makefile.am
webservices/axis2/trunk/c/test/core/description/test_description.c
webservices/axis2/trunk/c/test/core/engine/Makefile.am
webservices/axis2/trunk/c/test/core/engine/test_engine.c
webservices/axis2/trunk/c/test/unit/core/deployment/Makefile.am
webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.c
webservices/axis2/trunk/c/test/unit/core/deployment/deployment_test.h
webservices/axis2/trunk/c/test/unit/core/deployment/test_phases_info.h
Modified: webservices/axis2/trunk/c/include/axis2_conf_builder.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_conf_builder.h?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_conf_builder.h (original)
+++ webservices/axis2/trunk/c/include/axis2_conf_builder.h Thu Jan 12 03:11:46 2006
@@ -96,7 +96,7 @@
/**
* Creates conf builder struct
- * @param file
+ * @param file This is the full path to the server xml file
* @param dep_engine
* @param conf
* @return pointer to newly created conf builder
Modified: webservices/axis2/trunk/c/modules/core/deployment/axis2_deployment.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/axis2_deployment.h?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/axis2_deployment.h (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/axis2_deployment.h Thu Jan 12 03:11:46 2006
@@ -119,10 +119,6 @@
#define AXIS2_SVC_ELEMENT "service"
#define AXIS2_SVC_GRP_ELEMENT "serviceGroup"
-/**
- * Resource that contains the configuration
- */
-#define AXIS2_CONFIGURATION_RESOURCE "org/apache/axis2/deployment/axis2.xml"
#define AXIS2_SERVER_XML_FILE "axis2.xml"
/*********************************** Constants*********************************/
Modified: webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c Thu Jan 12 03:11:46 2006
@@ -112,9 +112,9 @@
axis2_conf_builder_t * AXIS2_CALL
axis2_conf_builder_create_with_file_and_dep_engine_and_conf (axis2_env_t **env,
- axis2_char_t *file,
- struct axis2_dep_engine *engine,
- axis2_conf_t *conf)
+ axis2_char_t *file,
+ struct axis2_dep_engine *engine,
+ axis2_conf_t *conf)
{
axis2_conf_builder_impl_t *builder_impl = NULL;
@@ -194,9 +194,10 @@
qparamst = axis2_qname_create(env, AXIS2_PARAMETERST, NULL, NULL);
itr = AXIS2_OM_ELEMENT_GET_CHILDREN_WITH_QNAME(conf_element, env, qparamst,
conf_node);
+ printf("came32\n");
AXIS2_DESC_BUILDER_PROCESS_PARAMS(conf_builder->desc_builder, env, itr,
builder_impl->conf->param_container, builder_impl->conf->param_container);
-
+ printf("came33\n");
/* process MessageReciver */
qmsgrecv = axis2_qname_create(env, AXIS2_MESSAGERECEIVER, NULL, NULL);
msg_recvs = AXIS2_OM_ELEMENT_GET_CHILDREN_WITH_QNAME(conf_element, env,
Modified: webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c Thu Jan 12 03:11:46 2006
@@ -58,6 +58,9 @@
*/
axis2_char_t *folder_name;
+ /**
+ * Full path to the server xml file(axis2.xml)
+ */
axis2_char_t *conf_name;
/**
@@ -619,7 +622,6 @@
axis2_conf_builder_t *builder = NULL;
axis2_repos_listener_t *repos_listener = NULL;
axis2_status_t status = AXIS2_FAILURE;
-
AXIS2_FUNC_PARAM_CHECK(dep_engine, env, NULL);
engine_impl = AXIS2_INTF_TO_IMPL(dep_engine);
@@ -631,10 +633,12 @@
}
engine_impl->conf = axis2_conf_create(env);
+
if(!engine_impl->conf)
{
return NULL;
}
+
builder = axis2_conf_builder_create_with_file_and_dep_engine_and_conf(env,
engine_impl->conf_name, dep_engine, engine_impl->conf);
if(!builder)
@@ -642,7 +646,9 @@
AXIS2_CONF_FREE(engine_impl->conf, env);
engine_impl->conf = NULL;
}
+ printf("came20\n");
status = AXIS2_CONF_BUILDER_POPULATE_CONF(builder, env);
+ printf("came21\n");
if(AXIS2_SUCCESS != status)
{
AXIS2_CONF_FREE(engine_impl->conf, env);
Modified: webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c Thu Jan 12 03:11:46 2006
@@ -26,6 +26,9 @@
{
axis2_desc_builder_t desc_builder;
+ /**
+ * Store the full path to configuration file.
+ */
axis2_char_t *file_name;
} axis2_desc_builder_impl_t;
@@ -250,7 +253,7 @@
AXIS2_FAILURE);
return NULL;
}
- /** create pull parser */
+ /** create pull parser using the file path to configuration file */
reader = axis2_xml_reader_create_for_file(env, builder_impl->file_name,
NULL);
@@ -275,6 +278,11 @@
document is the container of om model created using builder
*/
document = axis2_om_document_create (env, NULL, builder);
+ /**
+ * In description building we don't want defferred building. So build
+ * the whole tree at once
+ */
+ AXIS2_OM_DOCUMENT_BUILD_ALL(document, env);
/**
get root element , building starts hear
*/
@@ -598,13 +606,15 @@
axis2_om_attribute_t *para_name = NULL;
axis2_om_attribute_t *para_locked = NULL;
axis2_qname_t *att_locked = NULL;
- axis2_qname_t *att_qname = NULL;
+ axis2_qname_t *att_qname = NULL;
+ axis2_char_t *pname = NULL;
/* this is to check whether some one has locked the parmter at the top
* level
*/
param_node = (axis2_om_node_t *)
AXIS2_OM_CHILDREN_QNAME_ITERATOR_NEXT(params, env);
+ param_element = AXIS2_OM_NODE_GET_DATA_ELEMENT(param_node, env);
param = axis2_param_create(env, NULL, NULL);
/* setting param_element */
status = AXIS2_PARAM_SET_ELEMENT(param, env, param_node);
@@ -620,16 +630,19 @@
AXIS2_QNAME_FREE(att_qname, env);
if(!para_name)
{
+ printf("para_name is null\n");
AXIS2_PARAM_FREE(param, env);
return AXIS2_FAILURE;
}
- status = AXIS2_PARAM_SET_NAME(param, env, AXIS2_OM_ATTRIBUTE_GET_VALUE(
- para_name, env));
+ pname = AXIS2_OM_ATTRIBUTE_GET_VALUE(para_name, env);
+ printf("pname:%s\n", pname);
+ status = AXIS2_PARAM_SET_NAME(param, env, pname);
if(AXIS2_FAILURE == status)
{
AXIS2_PARAM_FREE(param, env);
return AXIS2_FAILURE;
}
+
/* setting paramter Value (the chiled elemnt of the paramter) */
para_value = AXIS2_OM_ELEMENT_GET_FIRST_ELEMENT(param_element, env,
param_node, ¶_node);
Modified: webservices/axis2/trunk/c/modules/core/description/param.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/param.c?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/param.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/param.c Thu Jan 12 03:11:46 2006
@@ -108,6 +108,14 @@
param_impl->type = AXIS2_TEXT_PARAM;
param_impl->param_element = NULL;
+ param_impl->param.ops =
+ AXIS2_MALLOC ((*env)->allocator, sizeof(axis2_param_ops_t));
+ if(NULL == param_impl->param.ops)
+ {
+ axis2_param_free(&(param_impl->param), env);
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
/* initialize ops */
param_impl->param.ops->get_name = axis2_param_get_name;
param_impl->param.ops->get_value = axis2_param_get_value;
Modified: webservices/axis2/trunk/c/modules/platforms/unix/axis2_unix.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/platforms/unix/axis2_unix.h?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/platforms/unix/axis2_unix.h (original)
+++ webservices/axis2/trunk/c/modules/platforms/unix/axis2_unix.h Thu Jan 12 03:11:46 2006
@@ -49,6 +49,10 @@
#define AXIS2_PLATFORM_CLIENTLOG_PATH "/usr/local/axis2/log/axis2_client_log"
#define AXIS2_PLATFORM_CONFIG_PATH "/etc/axiscpp.conf"
#define AXIS2_PLATFORM_SECUREINFO ""
+/**
+ * Resource that contains the configuration
+ */
+#define AXIS2_CONFIGURATION_RESOURCE "/home/damitha/programs/axis2c/axis2.xml"
/*****************************************************************
* Library loading and procedure resolution
Modified: webservices/axis2/trunk/c/modules/util/qname.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/qname.c?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/qname.c (original)
+++ webservices/axis2/trunk/c/modules/util/qname.c Thu Jan 12 03:11:46 2006
@@ -310,7 +310,3 @@
else
return AXIS2_STRACAT( qname_impl->namespace_uri, qname_impl->localpart, env);
}
-
-
-
-
Modified: webservices/axis2/trunk/c/test/core/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/Makefile.am?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/Makefile.am (original)
+++ webservices/axis2/trunk/c/test/core/Makefile.am Thu Jan 12 03:11:46 2006
@@ -1 +1 @@
-SUBDIRS = description context engine clientapi transport
+SUBDIRS = description context engine clientapi transport deployment
Modified: webservices/axis2/trunk/c/test/core/description/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/description/Makefile.am?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/description/Makefile.am (original)
+++ webservices/axis2/trunk/c/test/core/description/Makefile.am Thu Jan 12 03:11:46 2006
@@ -21,8 +21,10 @@
INCLUDES = -I$(top_builddir)/include \
-I$(top_builddir)/modules/util \
-I$(top_builddir)/modules/core/description \
+ -I$(top_builddir)/modules/core/deployment \
-I$(top_builddir)/modules/wsdl \
-I$(top_builddir)/modules/core/transport \
-I$(top_builddir)/modules/platforms \
+ -I$(top_builddir)/modules/xml/parser \
-I$(top_builddir)/include
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=368342&r1=368341&r2=368342&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 12 03:11:46 2006
@@ -97,6 +97,7 @@
return 0;
}
+
int main()
{
axis2_test_op_engage_module();
Modified: webservices/axis2/trunk/c/test/core/engine/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/engine/Makefile.am?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/engine/Makefile.am (original)
+++ webservices/axis2/trunk/c/test/core/engine/Makefile.am Thu Jan 12 03:11:46 2006
@@ -25,6 +25,8 @@
-I$(top_builddir)/modules/util \
-I$(top_builddir)/modules/wsdl \
-I$(top_builddir)/modules/core/description \
+ -I$(top_builddir)/modules/core/deployment \
-I$(top_builddir)/modules/core/transport \
+ -I$(top_builddir)/modules/xml/parser \
-I$(top_builddir)/modules/platforms
Modified: webservices/axis2/trunk/c/test/core/engine/test_engine.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/engine/test_engine.c?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/engine/test_engine.c (original)
+++ webservices/axis2/trunk/c/test/core/engine/test_engine.c Thu Jan 12 03:11:46 2006
@@ -3,6 +3,7 @@
#include <axis2_engine.h>
#include <axis2_conf_ctx.h>
#include <axis2_msg_ctx.h>
+#include <axis2_conf_builder.h>
int axis2_test_engine_send()
{
@@ -67,7 +68,7 @@
axis2_status_t status = AXIS2_FAILURE;
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
- struct axis2_conf *conf = NULL;
+ axis2_conf_t *conf = NULL;
conf = axis2_conf_create(&env);
struct axis2_conf_ctx *conf_ctx;
@@ -91,9 +92,48 @@
AXIS2_ENGINE_FREE(engine, &env);
return 0;
}
+
+int axis2_test_engine_conf_builder_populate_conf()
+{
+ axis2_status_t status = AXIS2_FAILURE;
+ axis2_conf_t *conf = NULL;
+ axis2_conf_builder_t *builder = NULL;
+ axis2_char_t *conf_name = NULL;
+ axis2_dep_engine_t *dep_engine = NULL;
+
+ printf("testing conf_builder_populate_conf method \n");
+
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ axis2_env_t *env = axis2_env_create (allocator);
+ conf = axis2_conf_create(&env);
+ dep_engine = axis2_dep_engine_create_with_repos_name(&env,
+ "/home/damitha/programs/axis2c");
+
+ conf_name = AXIS2_STRDUP("/home/damitha/programs/axis2c/axis2.xml", &env);
+
+ builder = axis2_conf_builder_create_with_file_and_dep_engine_and_conf(&env,
+ conf_name, dep_engine, conf);
+ if(!builder)
+ {
+ printf("conf builder is not created \n");
+ return -1;
+ }
+ status = AXIS2_CONF_BUILDER_POPULATE_CONF(builder, &env);
+ if(AXIS2_SUCCESS != status)
+ {
+ printf("Populate conf is not successfule. Test failed \n");
+ }
+ else
+ {
+ printf("conf is populated. Test is a success \n");
+ }
+ return 0;
+}
+
int main()
{
axis2_test_engine_send();
axis2_test_engine_receive();
+ axis2_test_engine_conf_builder_populate_conf();
return 0;
}
Modified: webservices/axis2/trunk/c/test/unit/core/deployment/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/core/deployment/Makefile.am?rev=368342&r1=368341&r2=368342&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/Makefile.am (original)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/Makefile.am Thu Jan 12 03:11:46 2006
@@ -2,12 +2,21 @@
prglibdir=$(prefix)/lib/unit_test
prglib_LTLIBRARIES = libtest_deployment.la
AM_CPPFLAGS = $(CPPFLAGS)
-libtest_deployment_la_SOURCES = deployment_test.c
+libtest_deployment_la_SOURCES = deployment_test.c \
+ test_phases_info.c \
+ test_dep_engine.c
+
include_HEADERS=$(top_builddir)/test/unit/core/deployment/*.h
INCLUDES = -I$(top_builddir)/include \
-I$(top_builddir)/modules/util \
+ -I$(top_builddir)/modules/core/deployment \
+ -I$(top_builddir)/modules/core/transport \
+ -I$(top_builddir)/modules/platforms \
+ -I$(top_builddir)/modules/wsdl \
+ -I$(top_builddir)/modules/core/description \
+ -I$(top_builddir)/modules/xml/parser \
-I${CUTEST_HOME}/include
prgbin_PROGRAMS = deployment_test
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=368342&r1=368341&r2=368342&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 Thu Jan 12 03:11:46 2006
@@ -4,9 +4,10 @@
#include <axis2_allocator.h>
#include <axis2_env.h>
-CuSuite* axis2_deploymentGetSuite() {
+CuSuite* axis2_deploymentGetSuite()
+{
CuSuite* suite = CuSuiteNew();
- /*SUITE_ADD_TEST(suite, Testaxis2_phases_info_get_op_in_phases );*/
+ SUITE_ADD_TEST(suite, Testaxis2_phases_info_get_op_in_phases );
+ SUITE_ADD_TEST(suite, Testaxis2_dep_engine_free );
return suite;
}
-
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=368342&r1=368341&r2=368342&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 Thu Jan 12 03:11:46 2006
@@ -2,6 +2,8 @@
#define DEPLOYMENT_TEST_H
#include <CuTest.h>
+#include "test_phases_info.h"
+#include "test_dep_engine.h"
CuSuite* axis2_deploymentGetSuite();
Added: 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=368342&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c (added)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.c Thu Jan 12 03:11:46 2006
@@ -0,0 +1,23 @@
+#include "test_dep_engine.h"
+#include <axis2_dep_engine.h>
+
+void Testaxis2_dep_engine_free(CuTest *tc)
+{
+ axis2_dep_engine_t *dep_engine = NULL;
+ axis2_status_t actual = AXIS2_FAILURE;
+ axis2_status_t expected = AXIS2_SUCCESS;
+
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ axis2_env_t *env = axis2_env_create (allocator);
+
+ dep_engine = axis2_dep_engine_create_with_repos_name(&env,
+ "/home/damitha/programs/axis2c");
+ if(!dep_engine)
+ {
+ printf("dep engine is not created \n");
+ return -1;
+ }
+ actual = AXIS2_DEP_ENGINE_FREE(dep_engine, &env);
+ CuAssertIntEquals(tc, expected, actual);
+}
+
Added: 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=368342&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.h (added)
+++ webservices/axis2/trunk/c/test/unit/core/deployment/test_dep_engine.h Thu Jan 12 03:11:46 2006
@@ -0,0 +1,15 @@
+#ifndef TEST_DEP_ENGINE_H
+#define TEST_DEP_ENGINE_H
+
+#include <string.h>
+#include <stdio.h>
+#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);
+
+#endif /* TEST_DEP_ENGINE_H*/
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=368342&r1=368341&r2=368342&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 Thu Jan 12 03:11:46 2006
@@ -1,5 +1,5 @@
-#ifndef TEST_DEPLOYMENT_H
-#define TEST_DEPLOYMENT_H
+#ifndef TEST_PHASES_INFO_H
+#define TEST_PHASES_INFO_H
#include <string.h>
#include <stdio.h>
@@ -10,6 +10,6 @@
#include <axis2_string.h>
#include <axis2_phases_info.h>
-void Testaxis2_phases_info_get_op_in_phases(CuTest *tc)
+void Testaxis2_phases_info_get_op_in_phases(CuTest *tc);
-#endif /* TEST_DEPLOYMENT_H*/
+#endif /* TEST_PHASES_INFO_H*/