File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes JUnit test for class dependent on being JAR'ed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "JUnit test for class dependent on being JAR Watch "JUnit test for class dependent on being JAR New topic
Author

JUnit test for class dependent on being JAR'ed

Mike Jansen
Greenhorn

Joined: Jul 29, 2011
Posts: 1
Hello,

How do I unit test (JUnit) a class that is dependent upon the class being packaged in a JAR file? I have a class to read properties from the Maven POM property file, but that file doesn't have the /META-INF/ path until it is packaged. It seems JUnit runs on the .class files.

Thanks,
Mike
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JUnit test for class dependent on being JAR'ed
 
Similar Threads
junit testing class that creates outputfile
Beans and Form processing
JUnit :Test type does not exist
Testing JSP's with taglibs
@Autowired not working in JUnit using spring 2.5