Cleanly handle exceptions in tests with Lambdas

If you have been writing tests for some time then the following construct should be pretty familiar to you for handling test cases: @Test public void myTest() { // Test something here... try { // Test something that will throw SomeException"Test did not throw expected exception."); } catch (SomeException e) { // Expected } // Test something here... } This has annoyed me some time already as it makes a clean looking test just plain ugly and I have been looking for a way to clean this mess up. You might at this point now argue that you could split the test up in smaller »

Vaadin Eclipse plugin with Java 8

Java 8 has just been released and it is now becoming the default Java implementation on many platforms. Unfortunately Eclipse has yet to become fully Java 8 compatible which means you might encounter some strange behaviour when creating Vaadin applications with the Vaadin plugin. There are a few pitfalls you need to be aware of. Downloading Eclipse First of all you need an eclipse version downloaded and installed. You can do that from Be sure to select Eclipse Kepler (4.3.2) SR2 version and the Eclipse IDE for Java EE Developers package. That will give »