We all write unit tests but the challenge we face at times is that the unit under test might be dependent on other components. And configuring other components for unit testing is definitely an overkill. Instead we can make use of Mocks in place of the other components and continue with the unit testing.
Peopleware is a must read for Managers who want to explore and learn about different managerial responsibilities and learn about what not to be done while executing those responsibilities. The content is presented with a touch of humour so you need not be surprised if you are found laughing while you are reading. [...]
JSON processing is not supported out of the box in Java. One would have to make use of 3rd part libraries to enable JSON processing. But with JSR 353 and its reference implementation JSON processing is being brought into the Java language. JavaEE 7 has already included the reference implementation.
Packt Publishing is giving everyone the chance to explore its full range of over 1600 DRM-free eBooks this Columbus Day at a massive 50% off at www.packtpub.com, for 4 whole days. Customers simply use the code COL50 in their cart – as many times as they like until Monday October 21st. The offer [...]
This post is inspired by the Double Brace Initialization concept explained here. This technique can be used for creating and initializing objects and represent these operations in a single expression. And the efficiency of this technique has been heavily discussed on stackoverflow.
We all have enjoyed reading the Head First series of books and this book i.e Head First HTML5 Programming is no different. The authors Eric Freeman and Elisabeth Robson have kept the content in the book as much practical as possible which means that your are more of coding than reading. Not all the features [...]
We all as Java programmers been through the situation where in we invoke a method to get some value and then instead of directly invoking some methods on the return value, we first have to check that the return value is not null and then invoke the methods on the return value. This has been [...]
Previously I had written about Companion classes in Scala and there in I had mentioned one of its uses i.e defining the apply method to support object literals. In this post I am continuing from where I had previously left and pick two such Companion classes in [...]
Connect to us …
- Getting started with Mocking in Java using Mockito February 23, 2014
- Another sample for using JAXB November 24, 2013
- Book Review: Peopleware October 25, 2013
- JSON Processing support in JavaEE 7 and JSR-353 October 18, 2013
- [Promo]Explore something new this Columbus Day with Packt’s biggest ever sale October 16, 2013
Some of the links contained within this site have my referral id, which provides me with a small commission for each sale. Thank you for your support.