Community

Mocking session in a Spock test for a java class

(Matt Busche) Spock is an excellent test framework that is built on top of Groovy and can be used to replace JUnit for testing Java classes. The majority of spock syntax is simple, but sometimes we run into issues where it is difficult to mock a class. Session is one of those examples.

Read More - Register for Free Membership