We must always turn static methods into protected ones.
authorGustavo Martin Morcuende <gustavo.martin@scmspain.com>
Wed, 23 Nov 2016 20:52:26 +0000 (21:52 +0100)
committerGustavo Martin Morcuende <gustavo.martin@scmspain.com>
Wed, 23 Nov 2016 20:52:26 +0000 (21:52 +0100)
commitb871c38ab6a408e7ce6f9e8b242a118bca7f69cf
tree6459521f4f08dc1e946cc2654f2c0d6ab550243c
parentc6bdbe6308d90ef0a01549ea26e3e94a5e33930a
We must always turn static methods into protected ones.

It is the only way of testing them (without using PowerMockito and stuff like that)
Remember, every change in the legacy code must be done by the tools proviede by our IDE (Eclipse, InteliJ, etc)
you must never rewrite by hand the legacy code.
TDD/src/main/java/org/craftedsw/tripservicekata/trip/TripService.java
TDD/src/test/java/org/craftedsw/tripservicekata/trip/TripServiceShould.java