String Calculator Kata 03 – Testing Exceptions (JUnit) & Streams (Java8)

Next requirement is to check for exceptional cases an throw. I use JUnits ExpectedException Rule to test exceptions and their message. I use more Java8 Streams features to check for the exceptional cases and to build the exception message. As always, I clean up after myself.

► All Kata Episodes:
► Let’s Develop!
► Don’t Miss an Episode:
► Kata:
► The Code:

«Code Kata»
Code Kata are small and simple programming problems that we execute to practice software engineering methods, like TDD or pair programming. The term is derived from Japanese martial arts.

«Other Series»
► Let’s Develop Conway’s Game of Life:
► Let’s Refactor MovieRental:

Share this: Facebooktwittergoogle_plusredditpinterestlinkedinmail | Follow me: twittergoogle_plusyoutube