Yearly Archives : 2012

Home  >>  2012

WordPress Webhooked into GitHub

On December 3, 2012, Posted by , In Common, By ,,,,,,, , With Comments Off on WordPress Webhooked into GitHub

Code Affine is published using WordPress. Besides content provisioning there are technical tasks like site composition and software maintenance we have to take care of. Hence we were looking for a pragmatic but efficient way that allows us to develop locally, do versioning of changes, publish such changes automatically and…

Working Efficiently with JUnit in Eclipse

On November 26, 2012, Posted by , In Eclipse,JUnit, By ,,,, , With 11 Comments

Recently I was dragged into a discussion1 with some test infected2 fellows about how we use JUnit within the Eclipse IDE. Surprisingly the conversation brought up some ‘tips and tricks’ not everybody was aware of. This gave me the idea to write this post doing a sum up of our…

A Simple way to extend SWTBot

On October 26, 2012, Posted by , In Eclipse, By ,, , With Comments Off on A Simple way to extend SWTBot

SWTBot is an Eclipse project that enables you to write functional tests for SWT and Workbench based applications in Java. It has API to remote control the application under test and matcher to find widgets and examine their state. For each widget, there is a corresponding bot class with methods…

JUnit Rules

On September 24, 2012, Posted by , In JUnit, By ,,, , With 20 Comments

The first time I stumbled over a JUnit @Rule annotation I was a bit irritated of the concept. Having a public field in a test case seemed somewhat odd and so I was reluctant to use it regularly. But after a while I got used to that and it turned…

Running HTTP/REST Integration Tests efficiently in Eclipse

On September 10, 2012, Posted by , In Eclipse,JUnit, By ,,,,, , With 8 Comments

Lately I had a chance to use the OSGi-JAX-RS-Connector library written by my dear fellow Holger Staudacher. The connector enables you to publish resources easily by registering @Path annotated types as OSGi services – which actually works quite nicely. While it is natural for me to write the service classes…

RAP: Adapt Your Style

On August 14, 2012, Posted by , In Eclipse, By ,,,, , With 4 Comments

I really like the new RAP default theme introduced with the  RAP 1.5 Release (see New and Noteworthy). It looks much more sophisticated and refined thus making RAP applications look ‘desgned for the web’, rather than ‘ported to the web’ as before. However, while working on my last customer project,…

How do you test equals and hashCode?

On June 25, 2012, Posted by , In JUnit, With 8 Comments

Just recently I had to implement equals() and hashCode() for several classes. With the aid of your favourite IDE, generating these methods is a matter of seconds. Well, if there weren’t the missing tests. As I tend to be obsessive when it comes to tests, I also want to have…

How do you import static in Eclipse?

On March 28, 2012, Posted by , In Eclipse, By , With 13 Comments

Long story short, I just discovered that Ctrl+Shift+M (Source > Add Import) can not only be used to add missing imports. It can also help with static imports. Executed on a reference to a qualified member (read Class.member), the refactoring will add a static import for the defining class and…

Eclipse Archive Utilities

On March 15, 2012, Posted by , In Eclipse, With 2 Comments

A little while ago I started a side project to support working with (zip) archive files in the Eclipse IDE. Initially it was more meant to revive my plug-in development knowledge and play around with some technologies like Tycho or SWTBot. But in the end, I though it might be…

Performance Analysis of REST/HTTP Services with JMeter and Yourkit

On February 10, 2012, Posted by , In Common, By ,,,,,, , With 11 Comments

My last post described how to accomplish stress- or load-testing of asynchronous REST/HTTP services with JMeter. However, running such tests often reveals that the system under test does not deal well with increasing load. The question is now how to find the bottleneck? Having an in-depth look at the code…