Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • how does this answer the question asked?
    – gnat
    Commented Feb 5, 2014 at 6:46
  • @gnat, The question was that What is the best way to unit test private methods in java classes? And my first point answers the question. Commented Feb 5, 2014 at 19:46
  • 1
    your first point merely advertises a tool, but it doesn't explain why you believe it is better than alternatives, such as eg testing private methods indirectly as was suggested and explained in top answer
    – gnat
    Commented Feb 5, 2014 at 19:49
  • jmockit has moved and the old official page points to an article about "Synthetic Urine and Artificial Pee". Wich is by the way still related to mocking stuff, but not relevant here :) The new official page is: jmockit.github.io
    – Guillaume
    Commented Aug 19, 2019 at 12:12