ElasticSearch: Validation Failed: 1: script or doc is missing
While dealing with ELastic Search documents, you faced this issue while updating…
July 22, 2017
Its good to write unit tests cases, and this part is mostly forgotten by developers. It can ease various issues that can come up while integrations.
I’m listing down various issues or problems that we faced while writing JUnit test cases:
This is the issue you face when somewhere in your dependency you are using a component whose mock is not supported by mock libraries. Or, mock libraries can not mock a class.
In this case, the solution is to tell PowerMock that please ignore particular package to mock. We are asking mock loader not to load particular package/classes.
And, you can do this by putting an annotation on top of class like below:
@PowerMockIgnore("javax.management.*")
And, next time you run, the issue is gone. Enjoy
While dealing with ELastic Search documents, you faced this issue while updating…
I was using On page optimization of the article pages, and found that meta…
Introduction You are having a form having multiple fields. When you render a…
This library is ES6, promise compatible. Or, in your package.json file, include…
For programmers, who want to write about their codes. Its often the first…
Introduction In this post, we will discuss 3 different ways to import a…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…