Testing
-
Software Development
Test Attribute #9 – Deterministic
I keep hammering on trust and how it’s crucial that we trust our tests. If a test is deterministic, it…
Read More » -
Enterprise Java
Writing Clean Tests – To Verify Or Not To Verify
When we write unit tests that use mock objects, we follow these steps: …
Read More » -
Software Development
Test Attribute #8 – Truthiness
I want to thank Steven Colbert for coining a word I can use in my title. Without him, all this…
Read More » -
Software Development
Writing Tests for Data Access Code – Don’t Forget the Database
When we write tests for our data access code, we must follow these three rules: …
Read More » -
Software Development
Test Attribute #7 – Footprint
When we talk footprint, we’re really talking about isolation. Isolation is key to trust. Wait, What? The “checking” part of…
Read More » -
Core Java
Clean JUnit Throwable-Tests with Java 8 Lambdas
Recently I was involved in a short online discussion on twitter and google+ which concerned the question why the arrival…
Read More » -
Software Development
Test Attribute #6 – Maintenance
I always hated the word “maintainability” in the context of tests. Tests, like any other code are maintainable. Unless there…
Read More » -
Scala
Test your Dependencies with Degraph
I wrote before about (anti)patterns in package dependencies. And of course the regular reader of my blog knows about Degraph, my private project to provide…
Read More » -
Core Java
A JUnit Rule to Run a Test in Its Own Thread
Occasionally it would be helpful to be able to run a JUnit test in a separate thread. In particular when…
Read More »