Jukito test fails with UnsatisfiedLinkError when I use a JavascriptObject native method in test

57 views
Skip to first unread message

Kalpana Natarajan

unread,
Jul 21, 2014, 7:40:57 PM7/21/14
to gwt-pl...@googlegroups.com
Hi,

I have a native method which converts a String to JavascriptObject

/* {
   return eval('(' + string+ ')');
} */

When I use this method to create a Javascript Object out of a dummy string, in a Jukito test, I get an
UnsatisfiedLinkError

Is there a way to run JSNI methods as they are expected to run in Client mode in a Jukito test?

Thanks,
Kalpana

SP Gingras

unread,
Jul 23, 2014, 9:09:36 AM7/23/14
to gwt-pl...@googlegroups.com
JSNI methods can't be run in standard plain old JRE Junit tests.

Instead, you should test that JSNI code using GWTTestCase. See http://www.gwtproject.org/doc/latest/DevGuideTesting.html for more info.
Reply all
Reply to author
Forward
0 new messages