Search in sources :

Example 1 with BootstrapArtefactHandler

use of org.grails.web.servlet.boostrap.BootstrapArtefactHandler in project grails-core by grails.

the class BootStrapArtefactHandlerTests method testIsBootStrapClass.

public void testIsBootStrapClass() {
    GroovyClassLoader gcl = new GroovyClassLoader();
    Class<?> c = gcl.parseClass("class TestBootStrap { }\n");
    ArtefactHandler handler = new BootstrapArtefactHandler();
    assertTrue(handler.isArtefact(c));
}
Also used : GroovyClassLoader(groovy.lang.GroovyClassLoader) BootstrapArtefactHandler(org.grails.web.servlet.boostrap.BootstrapArtefactHandler) ArtefactHandler(grails.core.ArtefactHandler) BootstrapArtefactHandler(org.grails.web.servlet.boostrap.BootstrapArtefactHandler)

Aggregations

ArtefactHandler (grails.core.ArtefactHandler)1 GroovyClassLoader (groovy.lang.GroovyClassLoader)1 BootstrapArtefactHandler (org.grails.web.servlet.boostrap.BootstrapArtefactHandler)1