Java, tests different services without modifying the business code and system time

< H2 > Code directly < / H2 >
   

but it is found that neither SystemFactory nor SystemClock knows who it is.

Mar.17,2021

if you want to test different times, why write the time dead in the business method. You can raise the time to the parameters:

  

Clock of java8, system is injected during normal operation, and fixed

is injected during testing.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e243-40978.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e243-40978.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?