Java
-

Testing Custom Exceptions with JUnit’s ExpectedException and @Rule
Exception Testing Why test exception flows? Just like with all of your code, test coverage writes a contract between your…
Read More » -

Log4j Thread Deadlock – A Case Study
This case study describes the complete root cause analysis and resolution of an Apache Log4j thread race problem affecting a…
Read More » -

JUnit Pass Test Case on Failures
Why create a mechanism to expect a test failure? There comes a time when one would want and expect a…
Read More » -

Does Immutability really means Thread Safety?
I have often read articles telling “If an object is immutable, it is thread safe”. Actually, I have never found…
Read More » -

MapReduce: Working Through Data-Intensive Text Processing
It has been a while since I last posted, as I’ve been busy with some of the classes offered by…
Read More » -

Test Driven Traps, part 2
The Story of a Unit in Unit Tests In the previous part of this article, you could see some bad,…
Read More » -

Pure Java JavaFX 2.0 Menus
In recent posts on JavaFX, I have focused on using JavaFX 2.0’s new Java APIs without use of the JavaFX…
Read More » -

Useful Ant build tags
Questions: How to do following tasks in ant file? Make zip file. Run command. Copy files to remote machine. Run…
Read More » -

Checked and unchecked exceptions in Java
Java has two types of exceptions – checked and unchecked. In short – checked are meant for cases when the…
Read More »





