上一页 1 ··· 256 257 258 259 260 261 262 263 264 ··· 477 下一页
摘要: For example, we want to test against a implemataion: We want to do the test with Java Context: 1. Bring in some dependencies: in pom.xml Create a new 阅读全文
posted @ 2019-04-24 15:14 Zhentiw 阅读(421) 评论(0) 推荐(0)
摘要: The benfits of multi-stage builds: Avoid manual creation of intermediate images Reduce complexity Selectively copy artifacts from one stage to another 阅读全文
posted @ 2019-04-23 22:14 Zhentiw 阅读(181) 评论(0) 推荐(0)
摘要: In this post, we are going to see more functionalities in Mockito. Mock a List interface: Call multi times: First call, return 10, second times return 阅读全文
posted @ 2019-04-23 20:25 Zhentiw 阅读(883) 评论(0) 推荐(0)
摘要: Let's say we want to write a most simple implementation 'avg' function: Basiclly, the 'avg' function doing two things: Calculate sum Divide sum / leng 阅读全文
posted @ 2019-04-22 21:49 Zhentiw 阅读(273) 评论(0) 推荐(0)
摘要: The highlighted part is important, without this, if you hint the page url: It will show 404 page, because it will be regareded as a server request. Wi 阅读全文
posted @ 2019-04-18 22:28 Zhentiw 阅读(253) 评论(0) 推荐(0)
摘要: Previously we have seen how to do Unit testing with Mockito; In this post, we are going to see, using annotation from Mockito to make testing easier: 阅读全文
posted @ 2019-04-18 20:23 Zhentiw 阅读(331) 评论(0) 推荐(0)
摘要: For example, in React application, we have initial state; We have a toggle button, which everytime, it is toggle 'ui.filterGroups.status' to true/fals 阅读全文
posted @ 2019-04-18 19:53 Zhentiw 阅读(172) 评论(0) 推荐(0)
摘要: For example we have a component, it needs to call 'react-redux' connect function. For the hightlighted part, there can be many possible reason for it 阅读全文
posted @ 2019-04-17 23:53 Zhentiw 阅读(403) 评论(0) 推荐(0)
摘要: When we develop the Angular app inside Docker container, we can simulate Production envioment by build Angualr App instead of using 'ng serve': '--del 阅读全文
posted @ 2019-04-17 18:36 Zhentiw 阅读(825) 评论(0) 推荐(0)
摘要: We have the implemetion: And we want to test agaisnst it: 阅读全文
posted @ 2019-04-17 17:52 Zhentiw 阅读(191) 评论(0) 推荐(0)
上一页 1 ··· 256 257 258 259 260 261 262 263 264 ··· 477 下一页