NbModuleSuite not working on the Mac

View: New views
2 Messages — Rating Filter:   Alert me  

NbModuleSuite not working on the Mac

by David Van Couvering-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I was very happy to find NbModuleSuite that lets me run tests for a module within the context of a NB runtime - in particular other modules I depend on and their layer files are loaded.

The problem: it's completely broken on the Mac.  NbModuleSuite throws an assertion failure because it can't find "lib/tools.jar" underneath the Java platform directory.  Apple's JDK doesn't have a 'lib' directory and it doesn't have a 'tools.jar'. 

Anybody know how to get around this?  Or am I SOL? 

Thanks,

David

-- Stack trace --

Exception in thread "main" junit.framework.AssertionFailedError
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at junit.framework.Assert.assertTrue(Assert.java:27)
        at org.netbeans.junit.NbModuleSuite$S.runInRuntimeContainer(NbModuleSuite.java:146)
        at org.netbeans.junit.NbModuleSuite$S.run(NbModuleSuite.java:128)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
--
David W. Van Couvering
http://davidvancouvering.blogspot.com

Re: NbModuleSuite not working on the Mac

by Jesse Glick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David Van Couvering wrote:

> I was very happy to find NbModuleSuite that lets me run tests for a
> module within the context of a NB runtime - in particular other modules
> I depend on and their layer files are loaded.
>
> The problem: it's completely broken on the Mac.  NbModuleSuite throws an
> assertion failure because it can't find "lib/tools.jar" underneath the
> Java platform directory.  Apple's JDK doesn't have a 'lib' directory and
> it doesn't have a 'tools.jar'.
>
> Anybody know how to get around this?  Or am I SOL?

Just file a bug and it should get fixed soon enough. No need to waste
time with the mailing list for something like this.

LightInTheBox - Buy quality products at wholesale price!