Wednesday, January 4, 2017

How to reuse java tests in other projects

It often happens that tests or classes, defined under the test folder, are relevant for another projects.
It is possible to share the test classes by creating a test-jar for the "home" project. The other project can use the tests by adding the test-jar as a dependency.
The post explains, how to add test-dependency in maven and sbt projects.

Sunday, January 1, 2017

Custom injection binding with Guice in Play

This post sequels the earlier one and explains, how to implement custom injection binding in Play.
You can read also this Practical guide to Guice, which explains how to work with Guice.

Custom injection binding in Play may be done with @ImplementedBy annotation or in a programmatic way with Guice module.

About the author

My Photo
I trust only simple code and believe that code should be handsome. This is not a matter of technology, but professional approach, consolidated after years of software development. I enjoy to cause things working and feel very happy, when I manage to solve a problem.
Back to Top