1

Specifically: what library is MockObjectTestCase in?

I'm following this link: http://therning.org/niklas/2005/05/jmock-solid-testing/

Is there an easy way to find out this kind of information? IS there a way to search through all of the files in the JMock jars?

I have jmock-2.5.1.jar, jmock-junit4-2.5.1.jar, junit-4.10.jar in my build path, but eclipse is not finding MockObjectTestCase as a super class selection for me to extend

Thanks

Eric Francis
  • 20,529
  • 28
  • 83
  • 119

3 Answers3

2

In your case the package seems to be: org.jmock.cglib.MockObjectTestCase

And according to http://www.jarfinder.com/index.php/java/info/org.jmock.MockObjectTestCase It seems to be found in 1.x versions of Jmock.

That post you linked to seems very old. Since you're using a later version that class might not exist anymore.

Simon Forsberg
  • 12,789
  • 10
  • 59
  • 101
2

I use findjar for this sort of thing. In your case:

Click on any of the results (i have no idea why there are so many - the links all lead to the same place), and you get a list of jars. Click through from those, and you have some information about the jars.

I suspect both findJAR and jarFinder are mostly indexing artefacts from Maven Central. You can search that directly:

Which in your case:

Finds quite a number of results.

Tom Anderson
  • 44,913
  • 16
  • 86
  • 129
1

Google works well. But sometimes you have to revert to the data you have on your disk:

jar tf SomeJarFile.jar | grep ClassName

Iterate over all your jars.

Marvo
  • 17,487
  • 8
  • 48
  • 73