This blog post covers the required implementation to get started with writing Acceptance Tests in a real Java project with JBehave.
Java Software Testing tutorials: unit testing, open source, JUnit, Mockito, TestNG, Spring, JGiven, etc.
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.
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.
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.
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.
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 is a programmer-oriented testing framework for Java.