Package org.codehaus.groovy.grails.commons

Examples of org.codehaus.groovy.grails.commons.GrailsControllerClass


        public GrailsControllerClass getControllerClassByName(String arg) {
            return null;
        }

        public GrailsControllerClass getControllerClassByURI(String arg0) {
            GrailsControllerClass res = mock(GrailsControllerClass.class);
            when(res.getFullName()).thenReturn("my.controller.MyClass");
            when(res.getShortName()).thenReturn("MyClass");
            return res;
        }
View Full Code Here


        public ModelAndView handleURI(String uri, GrailsWebRequest webRequest, @SuppressWarnings("rawtypes") Map parms) {
            if (whenToBlowUp.equals("blowUpBeforeController")) {
                throw new RuntimeException("Kaboom");
            }

            GrailsControllerClass controllerClass = getControllerClassByURI(uri);
            assertNotNull(controllerClass);
            if (whenToBlowUp.equals("blowUpAfterController")) {
                throw new RuntimeException("Kaboom2");
            }
View Full Code Here

TOP

Related Classes of org.codehaus.groovy.grails.commons.GrailsControllerClass

Copyright © 2018 www.massapicom. 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.