I am having a query with respect of using Mock Objects for UnitTesting .
Why the Mock Testing approach has became famous in less time ?? Is Junit Testing isn't was sufficient ??
Isn't it difficult to create Mock Objects and test them , in case of a Mock Approach ??
I'm not quite sure I follow you train of thought here. Mock objects are simply a technique used in unit testing.
The use of test doubles (mocks/stubs/fakes) in unit tests is at times unavoidable if you want to test a unit in isolation.
I guess you are referring to the use of libraries like JMock and EasyMock in addition to (rather than instead of) the JUnit framework?
Those libraries simply make creating and using mock objects a lot easier (usually). JUnit and "mocking libraries" are not competing technologies.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.