Powerunit is a unit test framework designed to be used with the JDK 1.8. It is inspired by the JUnit framework and syntax is very similar. from a high level perspective, the main difference are :
Much more details are available in the javadoc of this project
The source is hosted on git, as is the issue manager.
This framework is available in the maven central repo. It is be possible do use this framework as any maven dependency :
<dependency> <groupId>ch.powerunit</groupId> <artifactId>powerunit</artifactId> <scope>test</scope> </dependency>
Integration with surefire is also possible. To do so, the dependency must also be added to the extension of the surefire plugin:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <dependencies> <dependency> <groupId>ch.powerunit</groupId> <artifactId>powerunit</artifactId> </dependency> </dependencies> </plugin>
An artifact powerunit-with-dependencies is also available (starting with version 0.1.0); This one provides the same functionnalities, but with all the dependencies included inside the jar. This can be used in non-maven context.
Please refer to the release principles page for more information.