Blog

Clean Unit Test Patterns – Presentation Slides

On October 27, 2014, Posted by , In JUnit, By ,, , With No Comments

I was given the opportunity to talk at the GDG DevFestKarlsruhe 2014 conference about ‘Clean Unit Test Patterns’. Thanks to the organizers for inviting me and thanks to all people listening to my talk. As promised I shared the presentation e.g. for those who want to have a look at…

Explore Git Internals with the JGit API

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

Have you ever wondered how a commit and its content is stored in Git? Well, I have, and I had some spare time over the last rainy weekend, so I did a little research. Because I feel more at home with Java than with Bash, I used JGit and a…

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

Codeship: Continuous Integration for GitHub and Bitbucket

On October 6, 2014, Posted by , In Common, By ,, , With 1 Comment

Just recently I got the opportunity to use yet another continuous integration service: Codeship Continuous Integration. The hosted service builds GitHub and Bitbucket projects and offers various options for deployment. This post will give a brief overview how to build and deploy with Codeship. Simple Setup Setting up Codeship to…

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…

How to Access a Git Repository with JGit

On September 22, 2014, Posted by , In Eclipse, By ,,, , With No Comments

A Git repository is represented in JGit through the Repository class that can be viewed as a handle to a repository. With a Repository instance, you can create JGit commands (through the Git factory class), gain access to configuration settings, resolve refs, etc. There are several ways to obtain a…

How to Safely Use SWT’s Display asyncExec

On September 15, 2014, Posted by , In Eclipse, By ,, , With No Comments

Most user interface (UI) toolkits are single-threaded and SWT is no exception. This means that UI objects must be accessed exclusively from a single thread, the so-called UI thread. On the other hand, long running tasks should be executed in background threads in order to keep the UI responsive. This…

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…

Travis: Continuous Integration for GitHub Projects

On September 1, 2014, Posted by , In Common, By ,, , With No Comments

In a recent project I got the opportunity to work with Travis, a lean, hosted continuous integration service used to build GitHub projects that is free to use for public repositiories. This post gives a brief introduction on how to build projects with Travis. Simple Setup Setting up Travis to…