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 the President of Kousen IT, Inc., through which he does technical training, mentoring, and consulting in all areas of Java and XML. He is the author of the O'Reilly screencast "Up and Running Groovy", and the upcoming Manning book about Java/Groovy integration, entitled "Making Java Groovy".
He has been a tech reviewer for several books on software development. Over the past decade he's taught thousands of developers in business and industry. He is also an adjunct professor at the Rensselaer Polytechnic Institute site in Hartford, CT. His academic background includes two BS degrees from M.I.T., an MS and a Ph.D. from Princeton, and an MS in Computer Science from R.P.I.
More About Kenneth »

