What is the advantage of POJO class using in Web Service Testing ?

552 views
Skip to first unread message

Poovaraj Thangamariappan

unread,
Apr 21, 2018, 10:56:32 AM4/21/18
to rest-a...@googlegroups.com
Hi,

  • Java POJO class is using in Web Service Testing (Rest Assured). What is the advantage of POJO class using in Web Service Testing ? 
  • I have a xml file that contains 100 tag. I want to convert xml file to Java POJO class ?
  • Can you please help me how to convert xml to java POJO class easily ?

--

Regards,
Poovaraj


Todd Bradley

unread,
Apr 21, 2018, 12:47:12 PM4/21/18
to rest-a...@googlegroups.com
Hi, Poovaraj. None of these questions are directly related to REST-assured.

People use a few different toolkits and approaches for serializing and deserializing XML with Java. Two of the most popular ones are JAXB and Jackson. Try searching Google for "xml to pojo" and choose the toolkit that seems best for you, if that's really what you want. 

It's not really necessary to deserialize XML into an object for testing most of the time. You can test the XML payload of an HTTP response using the tools built right into REST-assured. See here for more:



Best wishes,
Todd.


--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Poovaraj Thangamariappan

unread,
Apr 22, 2018, 1:19:31 AM4/22/18
to REST assured
Hi Todd,

Thanks for clarification

Regards,
Poovaraj
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages