Page 1 of 24

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...

Selenium and Continuous Integration Oct 14


This article covers:

  • Why you would want to use continuous integration.
  • The main tools you'll use.
  • Some important strategies when testing.

We'll assume you are familiar with using a terminal or command prompt. 

Source code can be found...

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 (13)   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