XmlstreamWriter demo = new XmlstreamWriter(); string result=demo.getXmlstring(); string expected='<?xml version="1.0"?><?Products?>' + '<m:Product>' + '<00190000009rvgY>'; // is any other way to represent this line// System.assert(result == expected);
Hi,
Create object for that class and call that method.
Ex:
Class
------------
class xxx {
...
public void storeProducts() {
....
}
}
Test Method:
------------------
class Test_xxx {
...
static TestMethod void storeProducts () {
xxx object = new xxx();
object.storeProducts();
}
}
Hi Sravan,
Thanks for Reply.
Not helped me to increase in code coverage.