use of org.grails.plugins.DefaultGrailsPlugin in project grails-core by grails.
the class DefaultGrailsPluginTests method testGetName.
public void testGetName() {
GrailsPlugin versionPlugin = new DefaultGrailsPlugin(versioned, ga);
assertEquals("my", versionPlugin.getName());
}
use of org.grails.plugins.DefaultGrailsPlugin in project grails-core by grails.
the class DefaultGrailsPluginTests method testDoWithRuntimeConfiguration.
public void testDoWithRuntimeConfiguration() {
GrailsPlugin versionPlugin = new DefaultGrailsPlugin(versioned, ga);
RuntimeSpringConfiguration springConfig = new DefaultRuntimeSpringConfiguration();
versionPlugin.doWithRuntimeConfiguration(springConfig);
ApplicationContext ctx = springConfig.getApplicationContext();
assertTrue(ctx.containsBean("classEditor"));
}
use of org.grails.plugins.DefaultGrailsPlugin in project grails-core by grails.
the class DefaultGrailsPluginTests method testDoWithApplicationContext.
public void testDoWithApplicationContext() {
GrailsPlugin versionPlugin = new DefaultGrailsPlugin(versioned, ga);
RuntimeSpringConfiguration springConfig = new DefaultRuntimeSpringConfiguration();
versionPlugin.doWithRuntimeConfiguration(springConfig);
ApplicationContext ctx = springConfig.getApplicationContext();
assertTrue(ctx.containsBean("classEditor"));
versionPlugin.doWithApplicationContext(ctx);
}
use of org.grails.plugins.DefaultGrailsPlugin in project grails-core by grails.
the class DefaultGrailsPluginTests method testObservers.
public void testObservers() {
GrailsPlugin observingPlugin = new DefaultGrailsPlugin(observed, ga);
assertEquals(1, observingPlugin.getObservedPluginNames().length);
assertEquals("another", observingPlugin.getObservedPluginNames()[0]);
}
Aggregations