Simplifying Unit Tests with Loops
Loops are the forgotten tool in your toolbox when writing unit tests.
Handling Null at Compile Time
The compiler is your best tool to make sure your code is correct. Why not use it for null as well?
The Worst Thing to Do When Writing Tests
Know your data so your tests only have one pathway of execution.
Checked vs Unchecked Exceptions in Java
Checked exceptions are checked by the compiler whereas unchecked exceptions are not.
Can Null Really Simplify Code?
Where and when to use null to simplify your code and add clarity.
Why Using Null is So Bad
Null isn't called the billion-dollar mistake without good reason.
Grouping Statements by Concept, not by Variable
Statements grouped by concept will make reading the code more natural and easier to understand.
Simplifying Throws Clauses in Java Unit Tests
Listing checked exceptions in the throws clause of a unit test method is pointless.
Avoiding Redundant Method and Variable Names
Including the type in the variable or method name is unnecessary and redundant.
Simple Return Statements and Values
Keep your return statements uniform across your team.