Keep the bar green to keep the code clean

Home  >>  Keep the bar green to keep the code clean

Lightweight Integration Tests for Eclipse Extensions

03 Nov 2014
Recently I introduced a little helper for Eclipse extension point evaluation. The auxiliary strives to reduce boilerplate code for common programming steps, while increasing development guidance and readability at the same time. This post is the promised follow-up that shows how to combine the utility with an AssertJ custom assert...

Clean Unit Test Patterns – Presentation Slides

27 Oct 2014
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

20 Oct 2014
Have you ever wondered how Git stores a commit and its content? 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 couple of...

Eclipse Extension Point Evaluation Made Easy

13 Oct 2014
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

06 Oct 2014
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

24 Sep 2014
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

22 Sep 2014
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

15 Sep 2014
Most user interface (UI) toolkits are single-threaded and SWT is no exception. This restriction 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 to keep the UI responsive. This makes it...

JUnit in a Nutshell: Unit Test Assertion

10 Sep 2014
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...
No more posts
No more posts