Testing Java 8 in 3 Easy Steps

tl;dr Use your CI Setup to test Java 8.

The upcoming Java 8 release promises a bunch of new feature for Java developers, but there’s always a risk when upgrading that your code will break. We all remember that when Java 7 shipped it had a series of quite severe bugs.

Of course we can all help with avoiding the same issue cropping up in Java 8. The approach I’m going to cover today is using your existing Continuous Integration to run your tests on Java 8. If you don’t have a continuous integration server or tests go to jail, don’t pass go and don’t collect £200. I’m going to be using the open source hawkshaw memory shaper as an example of how to do this with a maven project.

1. Install JDK 8 on your CI Server

You can download an early access release of Java 8 from https://jdk8.java.net/download.html. You then have to install this as you would any Java release on your Continuous Integration Server itself.


Source : http://www.javacodegeeks.com/2013/07/testing-java-8-in-3-easy-steps.html

Back to Top