摘要:
The code is from Plusight course, github link is here. In this post, we will give a overview about how to setup Docker for a Angular, Node application 阅读全文
摘要:
A Vuex store centralizes the state of your app, making it easy to reason about your state flow. In this lesson we’ll see how we can create a Vuex stor 阅读全文
摘要:
It is recommened to write unit testing with Mockito in Spring framework, because it is much faster with Spring framework test. But in case you can doi 阅读全文
摘要:
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: 阅读全文