Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Ajax testing > Testing Google Web Toolkit applications

13.8. Testing Google Web Toolkit applications

The Google Web Toolkit (GWT)[25] is a free, open source framework used to create JavaScript frontends to web applications. GWT application development has a twist, though: you write your applications in Java. To this end, Google provides the Google Plug-in for Eclipse; you develop and test in Java, and when your application is ready for deployment, GWT translates your Java into JavaScript. GWT allows you to run and test your application in hosted mode, which runs in Java, and in web mode, where you application is translated to JavaScript and then is run in a browser.

[25] http://code.google.com/webtoolkit/

13.8.1. Choosing a testing framework for a GWT application

GWT supports JUnit with the GWTTestCase and GWTTestSuite classes, which both extend the JUnit TestCase class. GWT normally integrates with JUnit 3.8.2 and works with 4.6. GWT includes junitCreator, a program used to generate empty GWT test cases for a given GWT module. As a bonus, GWT can also benchmark your application. Because Java and JavaScript aren’t the same, you should test in both hosted and web modes.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint