Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ecomod
zmt-build
Commits
ba47fcdf
Commit
ba47fcdf
authored
Jul 05, 2016
by
Christian Meyer
Browse files
added ZmtLibraryPluginTest, ZmtSimulationPluginTest.groovy
build.gradle added junit dependencies for tests
parent
07d99d38
Changes
3
Hide whitespace changes
Inline
Side-by-side
build.gradle
View file @
ba47fcdf
...
...
@@ -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.+'
...
...
src/test/groovy/de/zmt/gradle/ZmtLibraryPluginTest.groovy
0 → 100644
View file @
ba47fcdf
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
))
}
}
}
src/test/groovy/de/zmt/gradle/ZmtSimulationPluginTest.groovy
0 → 100644
View file @
ba47fcdf
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
))
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment