You can test your application by using the following methods:
To test applications, log into the browser and test the application running on the JSVA. Browse to http://127.0.0.1:8080/mainui/. After logging into the application, the deployed application is visible in the browser.
The JUnit plug-in executes the test codes generated by the
EJB-REST wizard.
Package Structure for Generated Test Class—An example of a package structure for a generated test class is shown below. The generated package name is the REST package name appended by a "test" keyword.
Note: The "junit.properties" file in the web-src folder of the Web Service project contains the information for running JUnit test cases. It is a configurable file that you can modify as needed.
Auto-generated JUnit Constants—These constants are auto-generated and are loaded dynamically from the "junit.properties" file.
Setup and Teardown Method—These methods are automatically generated.
Test Method for PagingResult
To execute JUnit test cases:
Applications are debugged in the Eclipse IDE as remote Java applications running on the local host. You can debug applications on a remote server by substituting the appropriate host name or IP address and the port defined in the JBoss startup script.
To debug your applications, verify that the JBoss instance is running in debug mode. To debug the application in the IDE:
The Debug Configurations screen is displayed:
When you click the task in the Space UI, the breakpoint will be executed. To learn more about Eclipse remote debugging, refer to the following topics in Eclipse Help: