diff src/test/groovy/org/ssdt_ohio/gradle/plugins/UserDocPluginTest.groovy @ 13:a628135958e7

USASR-1307: inititial userdoc plugin/task to produce customizable groovy doc
author Dave Smith <smith@nwoca.org>
date Tue, 10 Dec 2013 22:53:57 +0000
parents
children 927f02ccc596
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/test/groovy/org/ssdt_ohio/gradle/plugins/UserDocPluginTest.groovy	Tue Dec 10 22:53:57 2013 +0000
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2013.  Ohio Department of Education. - All Rights Reserved.
+ * Unauthorized copying of this file, in any medium, is strictly prohibited.
+ * Written by State Software Development Team (http://ssdt.oecn.k12.oh.us/)
+ */
+
+package org.ssdt_ohio.gradle.plugins
+
+import org.gradle.api.Project
+import org.gradle.testfixtures.ProjectBuilder
+import org.junit.Test
+import org.ssdt_ohio.gradle.tasks.UserDoc
+
+
+class UserDocPluginTest {
+
+    @Test
+    public void greeterPluginAddsGreetingTaskToProject() {
+        Project project = ProjectBuilder.builder().withProjectDir(new File('.')).build()
+        project.apply plugin: 'userdoc'
+        project.apply plugin: 'groovy'
+
+        project.dependencies {
+            compile localGroovy()
+        }
+        UserDoc task = project.tasks.userdoc
+        assert task instanceof UserDoc
+
+
+        task.generate()
+
+    }
+}