I'm a software tester. We're providing a JAR file to our customer and it happened the second time now that the JAR file does not contain all needed classes. I don't know how that can happen from development point of view since I assumed that Eclipse would always add all classes to the JAR file.
Anyway, is there a tool that can check the integrity of a JAR file with the following requirements:
- gets all
new
statements in the JAR (by reflection?) and checks whether the class can be resolved - runs on Windows (specifically 7 SP1 x64)
- is free / gratis, open source preferred
Update
The way I'm thinking of this tool is
C:\>checkjar.exe myjar.jar
Checking JAR file integrity ...
Class org.mycompany.MyClass is referenced by org.mycompany.MyApp.doSomething(String args) but the class does not exist
I don't need
- a tool to run JUnit tests, since we don't have unit tests at the moment. I'm working on that.
- a tool to run integration tests. I confess, we don't have one yet, but we just need to pick one from the available.
Eventually it will be a task to integrate the JAR checker tool into JUnit tests or something. Right now, I just have the JAR and I need a tool to check it for missing classes. Any more detailed tests will probably be realized as JUnit tests.