One Database for Every Developer

How many databases run in your teams development environment? One for the complete team? I have seen many places like that, but please tell me: Why? You aren’t working on a shared files system aren’t you? How is a developer supposed to change the structure of that database without interrupting the work of the other [...]

Posted in: Softwaredevelopment by Jens Schauder 7 Comments

Use Cases for JUnit Rules

Sometime ago I blogged about JUnit @Rule Annotation. In the meantime I got the chance to use rules in a real project. I must say: Rules rock! Let me tell you about my use cases. I am working on a Swing project (It’s OK, it’s not as bad as it sounds). We have many tests [...]

Posted in: Softwaredevelopment by Jens Schauder 4 Comments , , ,

Properties of a Good Unit Tests

Question: what are the properties which make a test a good unit test? If you have a good answer, check out my answer and add to it in the comments. If you don’t here is mine. Long Descriptive Name: For example returnsNullWhenCalledOnEmptyList is a nice name for a test Simple Clean Structure: A test performs [...]

Posted in: Softwaredevelopment by Jens Schauder 4 Comments