[java-dev] Unit testing Java externals that call outlet()
Adam Murray
adamjmurray at gmail.com
Sat Aug 11 14:17:23 MDT 2007
- Previous message: [java-dev] Interlacing problem with VDIG and QTJava
- Next message: [java-dev] Re: Unit testing Java externals that call outlet()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am trying to write jUnit tests for a Java external I am working on. Unfortunately, many methods in my external call the outlet() method, and I get this error when trying to run a unit test: java.lang.UnsatisfiedLinkError: doOutlet at com.cycling74.max.MaxObject.doOutlet(Native Method) at com.cycling74.max.MaxObject.outlet(MaxObject.java:1425) at ajm.seq.reverse(seq.java:145) at ajm.test.TestSeq.testReverse(TestSeq.java:16) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Which makes sense because outlet uses a native method provided by the Max environment. Is there a way I can work around this problem without completely reworking my code to decouple the logic I want to test from the calls to outlet()? I am hoping I can make a fake stub for the doOutlet() native call, but I am not familiar with JNI so some help would be much appreciated. Adam
- Previous message: [java-dev] Interlacing problem with VDIG and QTJava
- Next message: [java-dev] Re: Unit testing Java externals that call outlet()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
