GRAILS-1019: Allowing expressions to be used with the 'disabled' attribute for g...
[grails.git] / test / groovy / org / codehaus / groovy / grails / cli / CreatePluginTests.groovy
blob193be4b390de155d5311a1088e7c68c5846058af
1 package org.codehaus.groovy.grails.cli;
3 class CreatePluginTests extends AbstractCliTests {
6 void testCreatePlugin() {
7 System.setProperty("grails.cli.args", "MyTest")
8 gantRun( ["-f", "scripts/CreatePlugin.groovy"] as String[])
10 // test basic structure
11 assertTrue new File("${appBase}/MyTest").exists()
12 assertTrue new File("${appBase}/MyTest/grails-app/conf/hibernate").exists()
13 assertTrue new File("${appBase}/MyTest/grails-app/conf/spring").exists()
14 assertTrue new File("${appBase}/MyTest/lib").exists()
15 assertTrue new File("${appBase}/MyTest/src/java").exists()
16 assertTrue new File("${appBase}/MyTest/src/groovy").exists()
17 assertTrue new File("${appBase}/MyTest/web-app").exists()
18 assertTrue new File("${appBase}/MyTest/web-app/WEB-INF").exists()
20 assertTrue new File("${appBase}/MyTest/web-app/css").exists()
21 assertTrue new File("${appBase}/MyTest/web-app/js").exists()
23 assertTrue new File("${appBase}/MyTest/grails-app/controllers").exists()
24 assertTrue new File("${appBase}/MyTest/grails-app/domain").exists()
25 assertTrue new File("${appBase}/MyTest/grails-app/conf").exists()
26 assertTrue new File("${appBase}/MyTest/grails-app/services").exists()
27 assertTrue new File("${appBase}/MyTest/grails-app/views").exists()
28 assertTrue new File("${appBase}/MyTest/grails-app/taglib").exists()
30 // test critical files
31 assertTrue new File("${appBase}/MyTest/MyTestGrailsPlugin.groovy").exists()
32 assertTrue new File("${appBase}/MyTest/web-app/WEB-INF/applicationContext.xml").exists()
33 assertTrue new File("${appBase}/MyTest/web-app/WEB-INF/sitemesh.xml").exists()