Electronic Shop (Hacker Rank)

Overview In this article we will try to solve one of the problem from HackerRank called Electronic Shop. A person wants to determine the most expensive computer keyboard and USB drive that can be purchased with a give budget. Given price lists for keyboards and USB drives and a budget, find the cost to buyContinue reading “Electronic Shop (Hacker Rank)”

Testing javax validation

Overview In this article we will see how to test the javax validation annotations. Code Let’s say we built a RESTful API where the client passes the payload in the POST request which we save in out database. Now before persisting in out DB we would like to check the values been passed. We canContinue reading “Testing javax validation”