Is it OK to use SpringRunner in unit tests?
问题 We are arguing about this approach with my colleagues. They say to use SpringRunner only on integration or functional levels. The question is what pros and cons of using it in level below? For example I have simple bean: public class RewardDurationCalculator { private Clock clock; public OptionalLong calculate(DurationType durationType, List<Pass> passes) { long now = Instant.now(clock).getEpochSecond(); switch (durationType) { case FULL_PASS: return getCurrentPassDuration(passes, now); case