Page 1 of 24

A Reliable Push Button Release Pattern Nov 22

I've been working to streamline a release build process recently. I'd heard of the Git Flow pattern for release builds, but found it too heavy for my liking.

I've been using a simpler release process for several years that works well with both SVN...

Try-Fail-Catch-Assert JUnit Patttern Nov 15

There's a pattern I like to use when testing for exceptions in JUnit. I call it the "Try-Fail-Catch-Assert Pattern".

Why would I want to use this pattern when I can just use @Test(expected = "…")?

public class AppTest {

    private App app;


Java Annotation Processor Tutorial Nov 6

I've been using Project Lombok, the excellent Java tool that create value-object classes with minimal code. Under the hood it uses the Java Annotation Processor to generate code based on your source code before compilation. Annotation processing a...

Spring Transactional Gotchas Nov 6

What is @Transactional and how can it catch me out?

The @Transactional annotation is used by Spring to wrap a method call in a transaction, committing if successful, and rolling back if unsuccessful.

It has a couple of quite nasty gotchas.


Given/When/Then JUnit Nov 2

I was recently introduced to a way to take some of the benefits of using the given/when/then style of specification based testing, and use them directly with JUnit.

You can get some of the benefits of using BDD style testing, but without the dependency...

Next page

Alex Collins

Java technical lead and solutions architect in London for the UK IT industry for over ten years. more...



concurrency (4)   docker (5)   gist (13)   java (44)   jmeter (3)   junit (7)   links (14)   maven (14)   oped (9)   performance (5)   plaf (14)   ruby (3)   selenium (5)   software (10)   spring (6)   swing (15)   testing (20)   tips (4)   tomcat (3)   unix (6)   web (4)  

Sitemap RSS LinkedIn