"def status = 'disabled'; }");
}
public void testDefaultGrailsPlugin() {
@SuppressWarnings("unused")
GrailsPlugin versionPlugin = new DefaultGrailsPlugin(versioned, ga);
try {
@SuppressWarnings("unused")
GrailsPlugin notVersionPlugin = new DefaultGrailsPlugin(notVersion, ga);
fail("Should have thrown IllegalArgumentException for unversioned plugin");
}
catch (PluginException e) {
// expected
}
try {
@SuppressWarnings("unused")
GrailsPlugin notPlugin = new DefaultGrailsPlugin(notPluginClass, ga);
fail("Should have thrown an exception for invalid plugin");
}
catch (IllegalArgumentException e) {
// expected
}