I'm having trouble getting a basic GWTTestCase running with a simple GWT-RPC. Here is what it looks like. What am I doing wrong.
Note that when the test is run the callback's onFailure() is called with a 404 error detail.
public class Test2 extends GWTTestCase
{
@Override
public String getModuleName()
{
return "com.test.app.MyApp";
}
public void testTwo()
{
System.out.println( "Test2 starting." );
MyServiceAsync srv = GWT.create( MyService.class );
DoitCallback doitCallback = new DoitCallback();
srv.doit( doitCallback );
delayTestFinish( 10000 );
System.out.println( "Test2 ending." );
}
/**
*
*/
private class DoitCallback extends AsyncCallback<String>
{
public void onFailure( Throwable caught )
{
assert false;
caught.printStackTrace();
}
public void onSuccess( String results )
{
System.out.println( results );
finishTest();
}
}
}