Author Archives : Frank Appel

Home  >>  Author : Frank Appel

Eclipse Extension Point Evaluation Made Easy

On October 13, 2014, Posted by , In Eclipse, By ,, , With No Comments

Coding Eclipse Extension Point evaluations comes in a bit verbose and sparsely self-explaining. As I got round to busy myself with this topic recently, I wrote a little helper with the intent to reduce boilerplate code for common programming steps, while increasing development guidance and readability at the same time….

JUnit in a Nutshell: Yet Another JUnit Tutorial

On September 24, 2014, Posted by , In JUnit, By ,,, , With 1 Comment

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

On September 10, 2014, Posted by , In JUnit, By ,,, , With 2 Comments

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

On September 3, 2014, Posted by , In JUnit, By ,,, , With 2 Comments

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

On August 27, 2014, Posted by , In JUnit, By ,,, , With 1 Comment

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

On August 18, 2014, Posted by , In JUnit, By ,,, , With 1 Comment

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

On August 12, 2014, Posted by , In JUnit, By ,,, , With 5 Comments

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?…

Clean JUnit Throwable-Tests with Java 8 Lambdas

On July 28, 2014, Posted by , In JUnit, By ,,,, , With 5 Comments

Recently I was involved in a short online discussion on twitter and google+ which concerned the question why the arrival of Java 8 Lambda expressions makes the catch-exception library1 obsolete. This was triggered by a brief announcement that the library won’t be longer maintained as lambdas will make it redundant….

A JUnit Rule to Run a Test in Its Own Thread

On July 21, 2014, Posted by , In JUnit, By ,,, , With No Comments

In JUnit it could be occasionally helpful to run a test in its own thread. In particular when writing integration tests that interact with encapsulated ThreadLocals or the like this could come in handy. A separate thread would implicitly ensure that the thread related reference of the threadlocal is uninitialized…

gonsole weeks: oops – it’s a framework

On June 26, 2014, Posted by , In Eclipse,Gonsole, By ,,, , With No Comments

While Eclipse ships with a comprehensive Git tool, it seems that for certain tasks many developers switch to the command line. This gave Rüdiger and me the idea, to start an open source project to provide a git console integration for the IDE. What happened so far during the gonsole…