JUnit Rules
24 Sep 2012
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
10 Sep 2012
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
14 Aug 2012
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?
25 Jun 2012
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?
28 Mar 2012
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
15 Mar 2012
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
10 Feb 2012
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...
Code Centric Trainings with the Samples Manager
01 Dec 2011
I recently gave a training course on – you guess it – RAP/RWT. And as it seems natural for a training targeted at developers it was very code centric and had many hands-on exercises. For hands-on exercises I find it useful to give a starting point so that tedious steps...
Stress/Load-Testing of Asynchronous HTTP/REST Services with JMeter
28 Nov 2011
Although I have been using JMeter for stress- and load-testing of web applications a good few times it took us a while to figure out how to test asynchronous HTTP/REST based services with the tool. With us I mean a fellow programmer – Holger Staudacher, I have the honor to...
No more posts
No more posts