Java Unit testing using JUnit @RunWith(Suite.class)

As developers we should start writing unit test cases, to be sure the unit of codes we have written works fine. Along with unit testing we can write functional test cases to be ensure our functionality works as expected. In this blog post i’m planing to explain how i used JUnit and selenium for an external OAuth login module. In my module I needed to support set of external account from different OAuth providers, such as google, facebook, microsoft etc … This module is responsible for provide a valid access token for different provider from an API exposed to external systems....

March 31, 2017 · 3 min · 535 words · Dulan Dissanayake

XML Validation

XML is stand for EXtensible Markup Language and it is easy to use XML as a markup language. XML haven’t got any predefined tags as HTML. Therefor when we are using a XML content, we have to use a mechanism to read those tags and identify those tags separately. For this mechanism there are XML parsers. Specially we can use SAX parser and DOM parser. In most web browsers they have an inbuilt XML parser....

December 2, 2008 · 2 min · 344 words · Dulan Dissanayake