mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-15 14:04:30 +08:00
Polish contribution
Closes gh-289
This commit is contained in:
parent
4d78a62a65
commit
2b505dd899
@ -153,6 +153,25 @@ class ProjectGenerationSmokeTests extends AbstractInitializrControllerIntegratio
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void selectDependencyAndChangeToIncompatibleVersionRemovesIt() {
|
||||
toHome {
|
||||
selectDependency(page, 'Data JPA')
|
||||
selectDependency(page, 'org.acme:bur')
|
||||
page.bootVersion = '1.0.2.RELEASE' // Bur isn't available anymore
|
||||
|
||||
page.generateProject.click()
|
||||
at HomePage
|
||||
assertSimpleProject()
|
||||
.isMavenProject()
|
||||
.pomAssert()
|
||||
.hasSpringBootParent('1.0.2.RELEASE')
|
||||
.hasDependenciesCount(2)
|
||||
.hasSpringBootStarterDependency('data-jpa')
|
||||
.hasSpringBootStarterTest()
|
||||
}
|
||||
}
|
||||
|
||||
ProjectAssert assertSimpleProject() {
|
||||
zipProjectAssert(from('demo.zip'))
|
||||
.hasBaseDir("demo")
|
||||
|
Loading…
Reference in New Issue
Block a user