package com.rbctcsworld.ecommerce.common; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.time.Clock; /** Injectable clock so tests can control "now" (coupon validity, card expiry). */ @Configuration public class ClockConfig { @Bean Clock clock() { return Clock.systemDefaultZone(); } }