When I call RequestFactory calls containing methods from my
*GWTTestCase*extending JUnit test I always get:
*[WARN] 404 - POST /dp.verp.actas.ActAs.JUnit/gwtRequest (192.168.1.51)
1422 bytes
*
*Mar 2, 2012 7:36:54 PM
com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl
runJob*
*SEVERE: Job run failed with unexpected RuntimeException: [object Class
JavaObject] (injected script#49)*
The code works fine when it runs in DevMode or ProdMode:
void *check*() {
ActAsRequest actAsRequest = ActAs.RF.actAsReqCtx();
actAsRequest.isManager("something").fire(new Receiver<Boolean>() {
@Override
public void onSuccess(Boolean response) {
Core.log(response.toString());
System.out.println("response = " + response);
}
});
}
*GWTTestCase:*
public void testIsManager() {
Main main = new Main();
main.*check*();
}
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/HfBMqi83LggJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.