ZmtExternalPluginTest.groovy 617 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package de.zmt.gradle

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

import static org.junit.Assert.*

class ZmtExternalPluginTest {
    @Test
    public void apply() {
        Project project = ProjectBuilder.builder().build()
        project.pluginManager.apply 'de.zmt.library'
        
        project.configure(project) {
            assertTrue(plugins.hasPlugin(ZmtBasePlugin.class))
            assertTrue(plugins.hasPlugin(ZmtJavaPlugin.class))
            assertTrue(plugins.hasPlugin(ZmtPublishPlugin.class))
        }
        
        project.evaluate()
    }
}