Pixum Software Engineering Blog
An insight into our development team, what we do and how we work

Blog articles tagged "java"

Testing with dates in Java

Christian Seifert

When working with date and time data we often struggle to create good test cases. A typical reflex is to say “We cannot really test this as we don’t know when the test is run and the object under test might give us different results depending on the day and the time”.

However there are some good strategies to test our code, even when it depends on specific dates and times.

Read more...