Testing

  • submit to reddit

Practical Unit Testing with TestNG and Mockito – Review

“Practical Unit Testing with TestNG and Mockito” (website) covers a wide spectrum of knowledge about testing in the Java environment using the...

2 replies - 4984 views - 08/01/12 by Tomasz Dziurko in Articles

Property Based Testing for Domain Models

One of the challenges that we face building a non trivial domain model is to write proper tests that verify the domain rules that the model implements....

0 replies - 1691 views - 07/31/12 by Debasish Ghosh in Articles

Testing and the Single Responsibility Principle

Automated testing is hard! Therefore, if you're about to learn it, just keep going. Resist the initial learning curve as afterwards it'll allow you to...

0 replies - 3537 views - 07/27/12 by Juri Strumpflohner in Articles

Test-driving Builders with Mockito and Hamcrest

A lot of people asked me in the past if I test getters and setters (properties, attributes, etc). They also asked me if I test my builders. The answer, in...

0 replies - 2930 views - 06/18/12 by Sandro Mancuso in Articles

How to Waste Time on TDD

This blog post was originally written by Piotr Włodarek on his TheSingularity.pl blog. I liked it so much that I translated it to English, so that it can...

2 replies - 3682 views - 06/17/12 by Andrzej Krzywda in Articles

If You Aren't Among Those Finding Bugs You Might be Among Those Complaining About Them Later

Back from vacation and looking forward to the more productive summer times in general I stumbled over a post titled "The most important lesson in Java...

1 replies - 4859 views - 06/11/12 by Markus Eisele in Articles

Spock and Roo = Easier Add-on Testing

Hey, before I was a Roo in Action author, I was a huge fan of Grails. I still am, because Groovy + your favorite APIs is so much more concise to program...

1 replies - 1913 views - 05/31/12 by Ken Rimple in Articles

Testing Multiple Properties With a Single Assertion

Every time I was trying to test an object's properties I was neither satisfied writing very verbose tests nor in using some of the out of the box hamcrest...

1 replies - 2779 views - 05/28/12 by Sandro Mancuso in Articles

Easy Unit and Integration Code Coverage

This example shows how to generate coverage for unit and integration tests using Maven and Sonar. It uses very simple techniques and should only take 10-15...

0 replies - 9295 views - 05/17/12 by John Dobie in Articles

Using the ShrinkWrap Maven Resolver for Arquillian Tests

This post assumes that you’re familiar with using Arquillian for testing Java applications. If you’re not familiar with Arquillian, then I suggest you...

0 replies - 6556 views - 05/10/12 by David Salter in Articles

Improving On assertEquals with JUnit and Hamcrest

In my blog post Are Static Imports Becoming Increasingly Accepted in Java?, I discussed the increasing use of static imports in Java to make code more fluent...

2 replies - 3228 views - 05/09/12 by Dustin Marx in Articles

Unit and Integration Tests With Maven and JUnit Categories

This example shows how to split unit and integration tests using Maven and JUnit categories. It is especially useful for existing test suites and can be...

0 replies - 4117 views - 05/08/12 by John Dobie in Articles

My First steps in Test Driven Development- A Win-Win Strategy

Agile practitioners talk about Test Driven Development(TDD), so do lot of developers who care about their code quality and workability. And I once upon a...

2 replies - 4378 views - 05/03/12 by Mohamed Sanaulla in Articles

MongoDB and Java

So you want a NoSQL database, and you have chosen MongoDB. Here is a tutorial on how easy MongoDB can be integrated with Java application and some advice on...

0 replies - 12807 views - 04/30/12 by Giorgio Sironi in Articles

TDD: Do We Really Have To Do It?

Many really smart people tell us we have to use TDD if we want to create code that is worth a penny. For example take this...

15 replies - 8153 views - 04/19/12 by Jens Schauder in Articles