Home » Tag Archives: Testing

Tag Archives: Testing

Every project is test driven in the end

Let me give you the punch-line and then explain myself: As soon as testing starts every “project” becomes a test driven. If there is no formal testing period then that phase begin the moment customers/users start using the product. I’ve recently been watching a slow motion train-crash, I had no power to avert the train crash and those I could ...

Read More »

Never trust a passing test

One of the lessons when practising TDD is to never trust a passing test. If you haven’t seen the test fail, are you sure it can fail? Red Green Refactor Getting used to the red-green-refactor cycle can be difficult. It’s very natural for a developer new to TDD to immediately jump into writing the production code. Even if you’ve written the ...

Read More »

Expected Exception Rule and Mocking Static Methods – JUnit

Today I was asked to consume a RESTful service so I started implementing it following Robert Cecil Martin’s rules for TDD and came across a new way (atleast for me) of testing the expected exception along with the error message so thought of sharing the way I implemented it as part of this post. To start with let’s write a ...

Read More »

Unit testing Java data classes immutability with the Mutability Detector

In all our project, we use data classes which, by definition, contain data (fields) but no (business) logic. According to the best coding practices, a data class should preferably be immutable because immutability means thread safety. Main reference here is Joshua Bloch’s Effective Java book; this Yegor Bugayenko’s post is also very interesting reading. An immutable class has several interesting ...

Read More »

[MEGA DEAL] The Ultimate Software Testing Bundle (98%)

In 84 Hours, You’ll Have the Skills You Need to Be A Software Tester In High Demand Hey fellow geeks, This week, on our JCG Deals store, we have an extreme offer. We are offering The Ultimate Software Testing Bundle for only $59 instead of the original price of $3,690, yeap that is a massive 98% off. Software Products Need ...

Read More »

5 Easy steps for Testers to Influence Developers

A classic problem for testers in agile contexts is the fact that they feel they are not listened to by developers. Testers, often rightly, warn developers from doing stuff because the consequences could be very bad, but developers in many cases don’t listen to them. This is very upsetting, testers find themselves lonely within an agile team because of this. They ...

Read More »

JUnit vs TestNG: Which Testing Framework Should You Choose?

JUnit vs TestNG: The testing frameworks showdown Testing is an inseparable part of the software release cycle in well balanced developer teams. And it wasn’t always like that. Unit tests, integration test, system tests and others weren’t always around. Today, we’re lucky to be in a place in time where testing matters and the value is known to most of ...

Read More »

Testing Spark Streaming: Unit testing

There is enough evidence to prove the importance of automated testing. Projects in new fields often neglect automated testing, as the domain itself steals the attention of the developers. However, lack of testing implies ‘laugh now, cry later’. Some of the tools around Big Data space have been architected around testability or, at least, the community has taken care of ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns