Re: How to test json output from json plugin?

2011-05-10 Thread Frans Thamura
we have full json=struts-spring-hibernate apps

please checkout from http://cimande.java.net

it is using maven, but little tricky

use mysql


F

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



How to test json output from json plugin?

2011-05-10 Thread Jim Talbut
Hi,

I've got an action declared as:
@Results( {
@Result( name="success", type="json", params={ "root", "schools" } )
})
@Namespace("/json")
@ParentPackage("json-default")
public class SchoolSearchAction extends ActionSupport {


and I have a test class that is able to get hold of the actionProxy, the 
actionInvocation, etc.

The question is, how, from the test class can I get hold of the json produced 
by the JSON result?

Thanks

Jim