-
Book Overview & Buying
-
Table Of Contents
JBoss Tools 3 Developers Guide
By :
As you have seen earlier, when creating a new Seam project, a project named {seam_project_name}-test (for WAR and EAR formats) appears in the Package Explorer view. This project was configured, by default, to run TestNG against the corresponding libraries and server runtime libraries.
Before any tests, check that the TestNG plug-in for Eclipse is installed on your Eclipse distribution. If you don't have it, you should install it. Go to http://testng.org/doc/download.html and follow the installation guide.
Starting a test can be done by following these steps:
1. In the Package Explorer view, extend the testSeam-test | test-src | org.domain.testSeam.test node.
2. Right-click on the TestActionPOJOTest.java node and select Run As | TestNG test option from the contextual menu (screenshot shown below).

Now, the test will start running. Take a look in the Console view to see the test log (as shown in the following screenshot).

Also, take a look at the TestNG view...
Change the font size
Change margin width
Change background colour