Java Software Testing tutorials: unit testing, open source, JUnit, Mockito, TestNG, Spring, JGiven, etc.

Testing Databases with JUnit and Hibernate

March 14, 2011 0

This blog post discusses the problem of testing the database code. It describes some of the problems and proposes possible partial solutions to this testing issue based on Hibernate and JUnit.

Unit Testing in Java: Broad Assertion

February 28, 2011 1

Broad assertion cuts out too large a chunk of output and side effects for bit-to-bit comparison, which makes it harmful due to the resulting brittleness. The assertion fails if any small detail changes, regardless of whether that change is relevant to the interests of this particular test. In this article, based on chapter 4 of Unit Testing in Java, author Lasse Koskela explains how to refactor the tests that suffer from broad assertion.

Converting JUnit Tests to TestNG

January 20, 2011 0

In this blog post, Cédric Beust describes the new TestNG features that allows to convert Java unit tests from JUnit 3 and JUnit 4 to TestNG.

Getting Started with TDD in Java using Eclipse

April 12, 2010 0

This video demonstrates the basic of Test Driven Development in Java using Eclipse. From basic tests and basic production code, to refactoring, and some splashes of Behavior Driven Development, watch production code get created test first.

Writing Testable Code

April 2, 2010 0

The article “Writing Testable Code” presents practices to write more testable code with many examples in java, going a step further than just TDD.

JUnit

January 5, 2010 0

JUnit is a programmer-oriented testing framework for Java.

1 7 8 9