Commit ba47fcdf authored by Christian Meyer's avatar Christian Meyer
Browse files

added ZmtLibraryPluginTest, ZmtSimulationPluginTest.groovy

build.gradle
    added junit dependencies for tests
parent 07d99d38
......@@ -15,6 +15,8 @@ dependencies {
compile gradleApi()
compile localGroovy()
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
compile 'org.hidetake:gradle-ssh-plugin:1.+'
compile 'nu.studer:gradle-credentials-plugin:1.+'
compile 'be.jlr-home.gradle:plantumlPlugin:0.1.+'
......
package de.zmt.gradle
import org.gradle.api.*
import org.junit.*
import org.gradle.testfixtures.ProjectBuilder
import static org.junit.Assert.*
class ZmtLibraryPluginTest {
@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(ZmtJavadocPlugin.class))
assertTrue(plugins.hasPlugin(ZmtDeployPlugin.class))
assertTrue(plugins.hasPlugin(ZmtPublishPlugin.class))
}
}
}
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))
assertTrue(plugins.hasPlugin(ZmtDeployPlugin.class))
assertTrue(plugins.hasPlugin(ZmtDistributionPlugin.class))
assertTrue(plugins.hasPlugin(ZmtEclipsePlugin.class))
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment