Search in sources :

Example 1 with TagLibArtefactHandler

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

the class TagLibArtefactHandlerTests method testIsTagLibClass.

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

Aggregations

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