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
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.
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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.