Mercurial > public > gradleplugins
comparison 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 |
comparison
equal
deleted
inserted
replaced
12:0a2819478262 | 13:a628135958e7 |
---|---|
1 /* | |
2 * Copyright (c) 2013. Ohio Department of Education. - All Rights Reserved. | |
3 * Unauthorized copying of this file, in any medium, is strictly prohibited. | |
4 * Written by State Software Development Team (http://ssdt.oecn.k12.oh.us/) | |
5 */ | |
6 | |
7 package org.ssdt_ohio.gradle.plugins | |
8 | |
9 import org.gradle.api.Project | |
10 import org.gradle.testfixtures.ProjectBuilder | |
11 import org.junit.Test | |
12 import org.ssdt_ohio.gradle.tasks.UserDoc | |
13 | |
14 | |
15 class UserDocPluginTest { | |
16 | |
17 @Test | |
18 public void greeterPluginAddsGreetingTaskToProject() { | |
19 Project project = ProjectBuilder.builder().withProjectDir(new File('.')).build() | |
20 project.apply plugin: 'userdoc' | |
21 project.apply plugin: 'groovy' | |
22 | |
23 project.dependencies { | |
24 compile localGroovy() | |
25 } | |
26 UserDoc task = project.tasks.userdoc | |
27 assert task instanceof UserDoc | |
28 | |
29 | |
30 task.generate() | |
31 | |
32 } | |
33 } |