ZmtSimulationPluginTest.groovy 825 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package de.zmt.gradle

import org.gradle.api.*
import org.junit.*
import org.gradle.testfixtures.ProjectBuilder

import static org.junit.Assert.*

class ZmtSimulationPluginTest {
    @Test
    public void apply() {
        Project project = ProjectBuilder.builder().build()
        project.pluginManager.apply 'de.zmt.simulation'
        
        project.configure(project) {
            assertTrue(plugins.hasPlugin(ZmtBasePlugin.class))
            assertTrue(plugins.hasPlugin(ZmtJavaPlugin.class))
            assertTrue(plugins.hasPlugin(ZmtJavadocPlugin.class))
19
            assertTrue(plugins.hasPlugin(ZmtDochostPlugin.class))
20
21
22
            assertTrue(plugins.hasPlugin(ZmtDistributionPlugin.class))
            assertTrue(plugins.hasPlugin(ZmtEclipsePlugin.class))
        }
23
24
        
        project.evaluate()
25
26
    }
}