mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22:58 +08:00
Polish contribution
Closes gh-178
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user