摘要:
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 阅读全文
摘要:
The benfits of multi-stage builds: Avoid manual creation of intermediate images Reduce complexity Selectively copy artifacts from one stage to another 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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: 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
When we develop the Angular app inside Docker container, we can simulate Production envioment by build Angualr App instead of using 'ng serve': '--del 阅读全文