历史日志评论 1 (214)
Apr 21, 2026 --- · 10 min readbest coffee - 2024-12-19 01:31:02I wanted to take a moment to commend you on the outstanding quality of your blog. Your dedication to excellence is evident in every aspect of your writing. Truly impressive!
seetimee - 2024-10-30 20:51:32感谢感谢
Zhe - 2024-08-28 04:44:08你在trio下得用 trio.sleep(),调用asyncio.sleep() 就会报错。
天天下载 - 2024-07-12 10:55:22感谢分享!!!!!!!!
bbbush - 2024-05-09 14:03:49can the submitter thread refresh outstanding SQS messages, rather than to fetch new messages?
Read More历史日志评论 2 (70)
Apr 21, 2026 --- · 6 min readyushuai_w - 2018-08-29 22:18:141public class IndexServiceImpl implements IndexService { 2public TranslateService translateService; 3 4 private void setTranslateService(TranslateService translateService) { 5 this.translateService = translateService; 6 } 7 8 @Override 9 public String output() throws Exception { 10 String description = read(); 11 //TranslateService translateService = new TranslateServiceImpl(); 12 Map rules = translateService.get(description); 13 ComputeService computeService = new ComputeServiceImpl(rules); 14 return computeService.get(description); 15 } 16} 17 18 19@RunWith(MockitoJUnitRunner.class) 20public class IndexServiceTest { 21 22@InjectMocks 23private IndexServiceImpl indexService; 24@Mock 25private TranslateService translateService; 26 27 @Before 28 public void setUp() throws Exception { 29 MockitoAnnotations.initMocks(this); 30 } 31 32 @Test 33 public void whenInputThenCorrectOutput() throws Exception { 34 //部分模拟 35 indexService = spy(IndexServiceImpl.class); 36 37 38 //模拟翻译服务 39 when(translateService.get(anyString())).thenReturn(exchangeRule); 40 41 //主要测试内容: 输出 42 String output = indexService.output(); 43 verify(indexService).read(); 44 verify(translateService).get(anyString()); 45 Assert.assertNotNull(output); 46 Assert.assertFalse(output.isEmpty()); 47 } 48}历史留言板(194)
Apr 21, 2026 --- · 9 min readNoob - 2023-11-22 01:24:51每次我没有目标了, 我就会打开你的博客。 每次都发现更新了几篇,这时我就会想 为啥你这么优秀?
wanglin - 2022-01-10 01:08:40老师您好,我是大连世达教育的王琳,我们近期有一个terraform企业内训想做,在2022年1季度完成即可,不知道您是否方便加我微信:15998512489
Yanbin - 2022-01-10 23:22:44我一直在境外,也没有使用微信。Terraform 方面现在能找到的最好最全的一本书也就是 《Terraform in Action》
Pabrik Batu Alam Andesit - 2022-09-18 05:34:09,只能分段方式上传
Yadan - 2021-04-28 00:38:47HI,老师,您好!我是来自一家培训公司,我们正在寻找“ Akka”的兼职培训师,日薪结算课酬,可以加好友沟通详情吗?我的微信号是13120126376!
Yanbin Qiu - 2021-04-28 11:10:56谢谢好意,一直比较忙
ukyu - 2020-12-20 09:37:27不知可以交换友链吗,正在努力成为自己想成为的人
lee - 2020-09-08 02:55:07aws 分段上传可以提升我们上传大文件的效率,它不是为了解决流式向 S3 写入数据而产生的。那请问流式分段的解决办法有吗
很棒的网站,感谢分享