Testing with JUnit Book Release
This week, I’m very happy to break the news that Packt Publishing has come out with a JUnit book release, fresh from the press. The title Testing with JUnit, which I had the privilege of writing, is now available in the bookstores. It has been quite some work, but I…
Testing with JUnit Book Announcement
Today, I am very pleased to inform you that Packt Publishing has put out a JUnit book announcement called Testing with JUnit on their website. A couple of months ago I was asked to write a book about one of my favorite topics – testing with JUnit. Needless to say…
JUnit in a Nutshell: Yet Another JUnit Tutorial
Why Another JUnit Tutorial? JUnit seems to be the most popular testing tool for developers within the Java world. So it is no wonder that there have been written some good books about this topic. But I still meet quite often programmers, who at most have a vague understanding of…
JUnit in a Nutshell: Unit Test Assertion
The last chapter of my multi-part tutorial about JUnit essentials covers various unit test assertion techniques. It elaborates on the pros and cons of the built-in mechanism, Hamcrest matchers and AssertJ assertions. The ongoing example enlarges upon the subject and shows how to create and use custom matchers/assertions. Unit Test…
JUnit in a Nutshell: Test Runners
The fourth chapter of my multi-part tutorial about JUnit testing essentials explains the purpose of the tool’s exchangable test runners architecture and introduces some of the available implementations. The ongoing example enlarges upon the subject by going through the different possibilities of writting parameterized tests. Since I have already published…
JUnit in a Nutshell: Test Isolation
Chapter three of my multi-part tutorial about JUnit essentials discusses the implications of unit dependencies for testing. The post illustrates the test isolation principle and shows how it can be put into practice – based on the nomenclature defined by Meszaros in xUnit Test Patterns [MES]. The ongoing example continues…
JUnit in a Nutshell: Test Structure
Chapter two of my multi-part tutorial about JUnit testing essentials will continue the ongoing example and work out the common structure that charactarizes well written unit tests. The nomenclature used throughout this post was defined by Meszaros in xUnit Test Patterns [MES]. The Four Phases of a Test The tutorial’s…
JUnit in a Nutshell: Hello World
JUnit in a Nutshell is a multi-part tutorial about the essentials of JUnit testing. This Hello World chapter introduces the very basics of a test: how it is written, executed and evaluated. The post also kicks off the ongoing example, which is continuously carried forward throughout this mini-series. Why bother?…