Search in sources :

Example 1 with ControllerArtefactHandler

use of org.grails.core.artefact.ControllerArtefactHandler in project grails-core by grails.

the class ControllerArtefactHandlerTests method testIsControllerClass.

public void testIsControllerClass() {
    GroovyClassLoader gcl = new GroovyClassLoader();
    Class<?> c = gcl.parseClass("class TestController { }\n");
    ArtefactHandler handler = new ControllerArtefactHandler();
    assertTrue(handler.isArtefact(c));
}
Also used : GroovyClassLoader(groovy.lang.GroovyClassLoader) ControllerArtefactHandler(org.grails.core.artefact.ControllerArtefactHandler) ArtefactHandler(grails.core.ArtefactHandler) ControllerArtefactHandler(org.grails.core.artefact.ControllerArtefactHandler)

Aggregations

ArtefactHandler (grails.core.ArtefactHandler)1 GroovyClassLoader (groovy.lang.GroovyClassLoader)1 ControllerArtefactHandler (org.grails.core.artefact.ControllerArtefactHandler)1