In this blog post, Roger Hughes explains how SureAssert, an integrated Java unit testing tool for Eclipse, can help solving the problem of having to change your Java unit tests when you change part of your code. You use annotations to define a set of tests for each of your class’s methods instead of writing unit tests. SureAssert automatically checks the annotations, generate and run unit tests.
Java Software Testing tutorials: unit testing, open source, JUnit, Mockito, TestNG, Spring, JGiven, etc.
Many developers think that testing Java EE applications is hard, inconvenient or too complex. This has not been true since the inception of Java EE 5 more than five years ago. This article explore how to do efficiently unit testing for Java EE applications.
This blog post explains how to keep your unit and integration tests in separate packages when you perform a standard Maven build.
In the episode 167 of the Software Engineering Radio, Kent Beck discusses about this tiny little thing he created many years ago and that has changed the daily work of many many programmers in the world: automated unit testing and JUnit.
This blog post covers the required implementation to get started with writing Acceptance Tests in a real Java project with JBehave.
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.