axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r502577 - /webservices/axis2/trunk/c/guththila/tests/test.c
Date Fri, 02 Feb 2007 11:18:09 GMT
Author: dinesh
Date: Fri Feb  2 03:18:00 2007
New Revision: 502577

URL: http://svn.apache.org/viewvc?view=rev&rev=502577
Log:
more unit tests

Modified:
    webservices/axis2/trunk/c/guththila/tests/test.c

Modified: webservices/axis2/trunk/c/guththila/tests/test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/tests/test.c?view=diff&rev=502577&r1=502576&r2=502577
==============================================================================
--- webservices/axis2/trunk/c/guththila/tests/test.c (original)
+++ webservices/axis2/trunk/c/guththila/tests/test.c Fri Feb  2 03:18:00 2007
@@ -31,6 +31,26 @@
 }
 END_TEST
 
+START_TEST (test_guththila_start_element)
+{
+	int c = 0;
+	char *p;
+	red = guththila_reader_create_for_file(environment, "resources/om/axis.xml");
+    parser = guththila_create(environment, red);
+	guththila_read (environment, parser);
+    while ((c = guththila_next(environment, parser)) != -1)
+    {
+        switch (c)
+        {
+            case GUTHTHILA_START_ELEMENT:
+                p = guththila_get_name(environment, parser);
+				break;
+		}
+	}
+	fail_unless (strcmp (p, "root"), "root element differed");
+}
+END_TEST
+
 Suite *
 guththila_suite (void)
 {
@@ -40,6 +60,7 @@
   TCase *tc_core = tcase_create ("Core");
   tcase_add_checked_fixture (tc_core, setup, teardown);
   tcase_add_test (tc_core, test_guththila);
+  tcase_add_test (tc_core, test_guththila_start_element);
   suite_add_tcase (s, tc_core);
   return s;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message