Published at: 09:10 pm - Sunday October 02 2011
I just love the assertion syntax of ScalaTest. It’s easy to read and easy to write and looks like this: 23 should be >= (12) Even if you know nothing about ScalaTest it should be easy to understand whats this assertion is about. But what when your assertions get more complex? Like this: new Frog().color.getGreen() [...]
Published at: 09:08 pm - Sunday August 28 2011
My favorite feature in the JUnit are Rules. With Rules you can manipulate the execution of your test, by wrapping your own code around the test execution. I have used this for setting up databases for test, making sure they execute in the EDT, limiting legal test execution time and for set up and tear [...]
Published at: 01:08 pm - Sunday August 21 2011
One of the many cool features in Scala are traits. traits are like a mixture of abstract classes and interfaces: You can ‘implement’ as many of them as you want just as with interfaces, but they can also contain implementation, which makes them similar to abstract classes. You also can’t instantiate a trait on its [...]