Monica Shiralkar wrote:
Yes, in Mockito, what I am trying to understand is that what is the way to do the part that we can do using patch in Python unit tests and what is the way to do the part that one can do using MagicMock in Python unit tests (does Mock() of Java do the same or anything else)?
It is hard to answer to this question, unless you know exactly how both frameworks work, what are their similarities and differences.
You better tell, what do you want to do with Java in your unit tests, and then we might help you how to achieve that.
But briefly looking at those you mentioned for Python, I think Mockito does all that, or at least to most extent.