Northern Virginia Software Symposium - No Fluff Just Stuff

Northern Virginia Software Symposium

April 25 - 27, 2014

Spock Workshop

Saturday - Apr 26 3:15 PM EDT - 5

The Spock framework brings simple, elegant testing to Java and Groovy projects. It integrates cleanly with JUnit, so Spock tests can be integrated as part of an existing test suite. Spock also includes an embedded mocking framework that can be used right away.

In this presentation, we'll look at several examples of Spock tests and review most of its capabilities, including mock objects and integration with Spring.

Kenneth Kousen

Kenneth Kousen

President, Kousen IT, Inc.

Workshop Requirements

This session is a workshop. Please come prepared.

  • Please install Java 7 or 8, using the full JDK. Java 8 is preferred and some of the examples will use it, but it isn't required for Spock
  • The Spock dependency will be downloaded as part of a Gradle build file, so please install a recent version of Gradle (any version above 2.2 will be fine). Gradle is just a zip file, and can be downloaded from http://gradle.org
  • Any IDE with Groovy support will be helpful. I plan to use IntelliJ IDEA, but Eclipse with a Groovy plugin should be fine. None of the exercises require an IDE at all, however, so you're welcome to run all the tests through Gradle builds at the command line
  • Please install any recent version of Groovy. If your IDE includes Groovy support, you can skip this step.

Video Preview

About Kenneth Kousen

Ken Kousen is a Java Champion, several time JavaOne Rock Star, and a Grails Rock Star. He is the author of the Pragmatic Library books “Mockito Made Clear” and “Help Your Boss Help You,” the O'Reilly books “Kotlin Cookbook”, “Modern Java Recipes”, and “Gradle Recipes for Android”, and the Manning book “Making Java Groovy”. He also has recorded over a dozen video courses for the O'Reilly Learning Platform, covering topics related to Android, Spring, Java, Groovy, Grails, and Gradle.

His academic background include BS degrees in Mechanical Engineering and Mathematics from M.I.T., an MA and Ph.D. in Aerospace Engineering from Princeton, and an MS in Computer Science from R.P.I. He is currently President of Kousen IT, Inc., based in Connecticut.