Search in sources :

Example 1 with ServiceArtefactHandler

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

the class ServiceArtefactHandlerTests method testIsServiceClass.

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

Aggregations

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