Training: "Testing Java Programs using JRuby"

Track: Tutorial

Time: Friday 13:00 - 16:00

Location: Trifork

Abstract:

Testing is the most important activity in the development process. If you don't test, how do you know that your code actually works correctly? And if you don't have tests, how do you know you don't break something?

The current way of testing in Java is cumbersome and not as practical as it could be. In contrast, the Ruby community is spending much time on continuously improving testing techniques.

This tutorial will first introduce the importance of testing, the way most testing of Java code is done currently, and the problems with these approaches.

After that I will show an alternative and detail a few different ways Ruby can be used for good effect to test Java code, utilizing JRuby. The tutorial will work around several code examples to make the testing concrete and useful. Several Ruby frameworks will be introduced that can easily be used to test Java code through JRuby.

Ola Bini, Core developer for JRuby since 2006 and is the author of the APress book Practical JRuby on Rails

 Ola  Bini

Ola Bini is a Swedish developer currently working for ThoughtWorks in Stockholm, Sweden. He has been one of the core developers for JRuby since 2006 and is the author of the APress book Practical JRuby on Rails. He has much experience with Java, Ruby and LISP, and has been involved with several other open source projects - but nowadays JRuby takes most of his time.

He has been known to like implementing languages, writing regular expression engines, YAML parsers and other similar things that exist at the borders of computer science.