Mocking with JodaTime's DateTime and Google Guava's Supplier

If you're a seasoned unit tester, you've learned to take note when you see any code working with time,*concurrency*, random, persistence and disc I/O.

The reason for this is that tests can be......

The Java Libraries You should Know

如果你每日只在遗留代码中挣扎,或许是时候抬起头,看看老Java中的新东西。

Guava

一句话,只要你做Java项目,就应该用Guava。

guava是Google出品的一套Java核心库,在我看来,它甚至应该是JDK的一部分。作为一个Java程序员,如果你没抱怨过JDK的设计,只能说明一点,你写得程序还是太少。正是JDK设计不彰,才有了一些项目来补充JDK的不足。如果说老Java程序员应......