About the Author:

Frank Appel

Frank realigned to software development in 1995 - working as freelancer while part-time studying IT at FernUniversität Hagen. Soon he focused on Java and specialized in frameworks and tooling. From 2001 he led the development of W4Toolkit and W4 Eclipse on behalf of Innoopract Informationssysteme GmbH, now EclipseSource. Since 2006 he was technical lead of the RAP Project. He joined Heiler Software AG as head of development PIM in 2009 and since August 2011 he earns his living again as freelancer.

Frank is a stalwart of agile methods and test driven development in particular. He understands software development as a craftsmanship based on a well-balanced mix of knowledge and the experience of the daily work. (EMail: fappel@codeaffine.com, Twitter: @frank_appel)

Posts by Frank Appel:

Clean Synchronization Using ReentrantLock and Lambdas

Recently I was reading an informative post about the differences between synchronized vs ReentrantLock by Javin Paul1. He emphasises on the advantages of the latter, but does not withhold some downsides, which are related to the cumbersome try-finally block needed for proper usage. While agreeing on his statements I brooded about a thought, that always […]

Tags: , , , , , ,

Posted in Common | 4 Comments »

Efficient Code Coverage with Eclipse

There is a saying that a fool with a tool is still a fool. But how to use a tool most efficiently is not always obvious to me. Because of this I typically spend some time to check out new playgrounds1 that promise to increase my work speed without impairing quality. This way I came […]

Tags: , , , ,

Posted in Common, Eclipse | 1 Comment »

Slim Down SWT FormLayout Usage

Always on the quest for efficiency I reconsidered the usability of SWT FormLayout lately. Although it is one of my favored core layouts with respect to flexibility, I had to recognize that it is only reluctantly used by most of my fellow workers. Proposing it for an appropriate task sometimes actually seems to inflict real […]

Tags: , , , ,

Posted in Common, Eclipse | 2 Comments »

What are Mockito Extra Interfaces?

Mockito is my favored little helper if it comes down to write light weight JUnit tests. It is very useful to replace the ‘real’ dependencies of a unit under test easily by mocks if necessary. In particular when working on the borderline to framework APIs such dependencies can otherwise be very expensive to setup. But […]

Tags: , , , , ,

Posted in Common | 1 Comment »

Getting JUnit Test Names Right

Finding good names is one of the challanges of crafting software. And you need to find them all the time and for everything – classes, methods, variables, just to name a few. But what makes a name a good name? To quote Oncle Bob: ‘Three things: Readability, readability, and readability!’ Which he defines later one […]

Tags: , , , , , ,

Posted in Common | 5 Comments »

Clean SWT Listener Notifcations with SWTEventHelper

Writing tests for SWT based UIs often requires to notify widget listeners programmatically. Unfortunately the code to create, initialize and finally to trigger the event is a bit verbose and distracts from the actual purpose of the test. After writing similar initialization routines a couple of times I came up with a little utility class […]

Tags: , , , , , ,

Posted in Common, Eclipse | 2 Comments »

SWT: Do You Know the Difference between Tree#select and Tree#setSelection?

Actually I did not, neither did Google and the API documentation seems to miss out one crucial point – which took me some time to figure out. So I decided to be a nice boy scout and share my findings as my good deed of the day 1. According to the JavaDoc the method Tree#select(TreeItem) […]

Tags: , , , , , ,

Posted in Common, Eclipse | 3 Comments »

A JUnit Rule to Ease SWT Test Setup

Rüdiger and I have written a lot of SWT test cases for our current RCP project lately. Most of the time we can execute them as plain JUnit tests. Still they also have to run in a RCP integration environment. Long story short we wrote a DisplayHelper fixture to reduce redundancy and handle display related […]

Tags: , , , , ,

Posted in Common, Eclipse | No Comments »

Responsive UIs with Eclipse and SWT

Recently I had the problem that my ‘well-conceived’ view design did not scale down reasonably. I realized that the flexibility to arrange viewparts in stacks of arbitrary sizes in an Eclipse workbench window does not exactly ease the development of appealing UIs. At least if you strive for more than a set of actions placed […]

Tags: , , , , , ,

Posted in Common, Eclipse | No Comments »

Mockito Templates for Eclipse

Sometimes I miss the forest for the trees – and that for a disturbingly long time. I just became aware of this once again recently, typing one of the more verbose mockito expressions for the umpteenth time. The statement in question was a doAnswer(Answer) construct which always feels a bit cumbersome to code with the […]

Tags: , , , ,

Posted in Common, Eclipse | No Comments »