Just getting started with GWTTestCase. I'd like to create some tests that include testing of the backend. Having trouble getting a basic GWTTestCase running. Here is what it looks like:
public class Test2 extends GWTTestCase { @Override public String getModuleName() { return "com.test.app.MyApp"; } public void testTwo() { System.out.println( "Test2 starting." ); BoneStationServiceAsync bssrv = GWT.create( BoneStationService.class ); FindScansCountCallback findScansCountCallback = new FindScansCountCallback(); bssrv.findScansCnt( "Bar%", null, null, null, null, null, null, -1, findScansCountCallback ); delayTestFinish( 10000 ); System.out.println( "Test2 ending." ); } /** * */ private class FindScansCountCallback extends AuthAsyncCallback<Integer> { public void onFail( Throwable caught ) { assert false; caught.printStackTrace(); } public void onSuccess( Integer results ) { System.out.println( results ); finishTest(); } } } -- 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/-/xQFOv4yyP1AJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.