Wrapping Up

Even though Scala has sensible static typing and quite a few errors will be caught at compile time, unit testing is still important. It can greatly help to get quick feedback that the evolving code continues to work as expected. You could use JUnit to test Scala code, but ScalaTest is a nice tool for testing both Scala code and Java code. In addition to providing fluency of tests, ScalaTest makes it quite easy to use the mocking libraries popular in Java.

We’ve come to the end of this journey and reached a beautiful shore. You’re now ready to apply the concepts you’ve learned. Enjoy Scala’s concise and expressive power as you begin to create real-world projects in Scala. I sincerely hope you benefit from this book and will be able ...

Get Pragmatic Scala now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.