struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Talbut <Jim.Tal...@groupgti.com>
Subject How to test json output from json plugin?
Date Tue, 10 May 2011 17:18:35 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message