php55w-common conflicts with php-common-5.* | Php issues while installing libraries
I was trying to install mongo extension with pecl. It gave me error: Then, I…
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
I was trying to install mongo extension with pecl. It gave me error: Then, I…
You are developing a nodejs web application having some UI and backend APIs…
I was testing a bug where a field was limited to 255 characters only. I needed…
Introduction You have a view with 4-5 fields to display. Suppose, there are two…
Tag the image, by seeing its image id, from docker images command docker tag 04d…
Its essential to prepare a git branching strategy. This helps greatly in…
In this post, we will see some of the frequently used concepts/vocabulary in…
System design interview is pretty common these days, specially if you are having…
Introduction You are given an array of integers with size N, and a number K…
Graph Topological Sorting This is a well known problem in graph world…
Problem Statement Given a Binary tree, print out nodes in level order traversal…
Problem Statement Given an array nums of n integers and an integer target, are…