Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unit test a class with xml elements

15 views
Skip to first unread message

Palpandi

unread,
May 24, 2016, 8:50:48 AM5/24/16
to
Hi,

How can I unit test a class which using xml elements?
There is a posiibility of different combinations of xml.

What is the better way to test this kind of class?
XML binding is used here.

Share if any examples available.


Thanks.

John Gordon

unread,
May 24, 2016, 2:30:43 PM5/24/16
to
Create your own sample XML illustrating each desired combination.

Then write test cases for each.

--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"

0 new messages