Nebraska.Code() Sessions tagged kotlin

A JVM Testing Showdown: JUnit5 vs. Spock vs. Spek

After 10 years of stagnation in unit testing the JVM, there are finally some competitors vying to unseat JUnit 4's position atop the unit testing throne. Among these are newcomers JUnit 5 and Spek, as well as the more established Spock Framework. This presentation will cover the strengths and weaknesses of each of these frameworks while testing the same production code.

A large part of the differences in the three frameworks are the backing programming languages. The presentation will showcase how it is possible to test the same production code with Kotlin (Spek), Groovy (Spock), or Java (JUnit 5).

This presentation will also briefly touch on how the inovations in the JavaScript testing community have impacted these newer testing frameworks.

Finally, the presentation will cover how to start writing tests with these new frameworks in a legacy application.

Speaker

Jake Partusch

Jake Partusch

Sr. Consultant, Object Partners

Kotlin: JVM Superpowers

Kotlin is a relative newcomer to the pantheon of JVM bytecode-compatible languages. Joining veterans like Groovy and Scala, it takes a fresh approach that avoids a lot the annoying aspects of Java while providing the power and flexibility of its siblings. But it has a secret superpower - Kotlin can compile directly to both Java and JavaScript.

In this talk we'll do some brief overview of Kotlin syntax and capabilities before diving into a start-to-finish example of Kotlin in action in a client-server application. Shield your eyes from the super syntax, reminisce about how you used to live in fear of NullPointerExceptions, laugh about all those times you had duplicate the same utility functions in Java and JavaScript.

Speaker

Mike Plummer

Mike Plummer

Principal Consultant, Object Partners