Hi I am new to GWT and my manager assign some task to write TestCases for GWT application.In my case I am thinking to write TestCase for my entry class only.But he wants some thing that view should be tested i.e button is hides or not after certan event.Is there any way to test These senarios with our GWTTEstCases.
I am attching my code your reference.
My Class has this method
aND HAD CERTAIN event
I am attching my code your reference.
My Class has this method
Code:
public void onModuleLoad() { Log.showLogWindow(false); Log.setUncaughtExceptionHandler(); /* * Use a deferred command so that the UncaughtExceptionHandler * catches * any exceptions in loadApp() */ DeferredCommand.addCommand(new Command() { public void execute() { loadApp(); } }); } public void loadApp(){ Log.debug("This is a 'DEBUG' test message"); Log.info("This is a 'INFO' test message"); Log.warn("This is a 'WARN' test message"); Log.error("This is a 'ERROR' test message"); Log.fatal("This is a 'FATAL' test message"); CallPlanAsyncService service = GWT.create(CallPlanAsyncService.class); HandlerManager eventBus = new HandlerManager(null); controller = new CallPlanEditorController(service,eventBus); clearCookies(); registerMethods(); controller.go(RootPanel.get("tfPort")); }
Comment