Speaker Topics - No Fluff Just Stuff

Testing Groovy and Java Systems

Most Java developers work with unit testing frameworks like JUnit, and use mocks and stubs generated by third-party libraries. Groovy has both features built into the language. This presentation will show you how to write tests for Groovy, Java, and mixed projects that are simple, easy to write, and run on your existing test infrastructure.

Examples will be given showing how GroovyTestCase simplifies JUnit, how to test Groovy scripts, how to build stub implementations with Expandos, and how to take advantage of the built-in Groovy classes MockFor and StubFor. The Spock framework will also be used to show how to create data-driven tests. All of the examples can be run together in the same Java-based or mixed Java and Groovy project.


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.

More About Kenneth »