Package org.apache.tapestry.json

Examples of org.apache.tapestry.json.JSONObject.keys()


        JSONObject validations = support.getValidations();

        // Tip-toe around the fact that the order of the keys is JDK specific.

        assertEquals(CollectionFactory.newSet(validations.keys()), CollectionFactory.newSet("fred", "barney"));

        assertEquals(validations.get("fred").toString(), "[[\"maxlength\",\"Up to 10 characters\",10]]");
        assertEquals(validations.get("barney").toString(),
                     "[[\"required\",\"Who can live without Barney?\"],[\"email\",\"You know, an e-mail address.\"]]");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.