Omair-Inam Abdul-Matin wrote:
I'm facing a weird error. I have the following projects with the dependencies shown (a -> b means a depends on b)
storagemanager->util
stindex->util
stindex->storagemanager
I have made a unit test in the storagemanager project that uses a public static method in a class located in the util project. When I compile and run the test in Eclipse it works fine. Under maven, the source and unit test files compile fine, but if I run the tests the test cases invoking the method fail. If I copy the static method into the unit test itself, then the test passes.
Does anyone know what's going on? I don't want to duplicate utility methods in *all* my unit testcases because of this...
Sounds like a classpath problem to me.
Is the jar containing the class with the static method in your list of dependencies for the project whose tests fail?
What is the exact error message you get?
--
Erik Husby
Team Lead for Software Quality Automation
Broad Institute of MIT and Harvard Rm. 2192 320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
