Ok, after writting the question I got some new ideas to google and found this article: UnsatisfiedLinkError in GWTTestCase. Options.
So apperently you just cant use native methods in the GWTTestCase constructur, but you can use them inside the test function.
Example illeagal:
JSWidgetBasic jswb;
public JSWidgetBasicTest() {
String s_jswb = "{\"zzzz\":\"type\"}";
jswb = JsonUtils.safeEval(s_jswb).cast();
}
public void testWidgetType() {
assert (jswb.getZZZZ().compareTo("type") == 0);
}
but this is allowed
public JSWidgetBasicTest() {
}
public void testWidgetType() {
String s_jswb = "{\"zzzz\":\"type\"}";
JSWidgetBasic jswb = JsonUtils.safeEval(s_jswb).cast();
assert (jswb.getZZZZ().compareTo("type") == 0);
}
Hope this helps someboedy, cause I wasted a few hours finding it....