Patent ID: 7865779

Claim:
A method for server side logic unit testing in an application server environment, comprising: reading a plurality of input parameters from an eXtensible Markup Language (XML) input repository, wherein the input parameters define an initial state of a test environment; configuring the test environment to the initial state using the input parameters, wherein the initial state of the test environment includes a command context, request properties, and a database state; executing a unit test case from JUnit test cases using a command test manager to interface between the unit test case and the test environment, wherein the command test manager translates a command from the unit test case into a test command; passing the test command to controller command logic, wherein the controller command logic passes the test command to a command simulator; accessing test data stored in a database through an access bean using a bean simulator; receiving test results from the test command and the test data produced via the command simulator and the bean simulator, including catching an exception on an error condition; and outputting the test results to an XML output repository, wherein the XML output repository interfaces with the XML input repository such that the test results serve as input to other unit test cases.