Code Affine is a group of IT freelancers with focus on RAP, RCP, OSGi and other Java technologies. We offer training, design and development support.
As we believe that Agile approaches deliver higher value faster and more sustainable than that what we considered essential to software development a decade ago, we focus our work on projects that allow us to follow principles and methods derived from the Agile Manifesto. More…
Latest Posts
Running JUnit Tests Repeatedly Without Loops
Recently I came across a problem where I had to write tests for a method that calculates randomly distributed values within a certain range of possibilities 1. More precisely if you assume a signature that looks like interface RandomRangeValueCalculator { long calculateRangeValue( long center, long radius ); } a test might verify the following2: public [...]
Posted in Common | 4 Comments
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 last but not least run [...]
Posted in Common | No Comments
Working Efficiently with JUnit in Eclipse
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 talk. Who knows – maybe [...]
Posted in Eclipse | 9 Comments
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 to control the widget. To [...]
Posted in Common, Eclipse | No Comments
JUnit Rules
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 out that rules can ease [...]
Posted in Common | 3 Comments