unit testing: mock ThreadContext map impl using Spock or Mockito

前端 未结 0 802
情深已故
情深已故 2021-01-13 20:02

my method is in a Java class like this...

   //some business logic
   String userId = org.apache.logging.log4j.ThreadContext.get("userId"); //I need         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题