Polish contribution

Closes gh-178
This commit is contained in:
Stephane Nicoll
2016-01-12 14:25:08 +01:00
parent f73fc154ec
commit 6997571099

View File

@@ -344,6 +344,25 @@ class ProjectGenerationSmokeTests extends AbstractInitializrControllerIntegratio
}
}
@Test
void customizationsOnGroupIdAndArtifactId() {
toHome('/#!groupId=com.example.acme&artifactId=my-project') {
page.generateProject.click()
at HomePage
def projectAssert = zipProjectAssert(from('my-project.zip'))
projectAssert.hasBaseDir('my-project')
.isMavenProject()
.isJavaProject('com.example.acme', 'MyProjectApplication' )
.hasStaticAndTemplatesResources(false)
.pomAssert()
.hasGroupId('com.example.acme')
.hasArtifactId('my-project')
.hasDependenciesCount(2)
.hasSpringBootStarterRootDependency()
.hasSpringBootStarterTest()
}
}
private Browser toHome(Closure script) {
toHome('/', script)
}