mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-26 22:25:51 +08:00
polish
This commit is contained in:
@@ -56,7 +56,8 @@ class VersionRange {
|
||||
this.higherVersion = higherVersion
|
||||
this.higherInclusive = higherInclusive
|
||||
}
|
||||
/**
|
||||
|
||||
/**
|
||||
* Specify if the {@link Version} matches this range. Returns {@code true}
|
||||
* if the version is contained within this range, {@code false} otherwise.
|
||||
*/
|
||||
|
||||
@@ -53,7 +53,6 @@ class CommandLineHelpGeneratorTest {
|
||||
assertCommandLineCapabilities(content)
|
||||
assertThat content, containsString('| foo')
|
||||
assertThat content, containsString('| foo-desc')
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -113,7 +113,6 @@ class ProjectGeneratorTests {
|
||||
generateMavenPom(request).hasStartClass('demo.DemoApplication')
|
||||
.hasDependency('org.foo', 'thymeleaf')
|
||||
.hasDependenciesCount(2)
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -135,7 +134,6 @@ class ProjectGeneratorTests {
|
||||
.hasDependency('org.foo', 'thymeleaf') // This is tagged as web facet so it brings the web one
|
||||
.hasSpringBootStarterDependency('test')
|
||||
.hasDependenciesCount(3)
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -148,7 +146,6 @@ class ProjectGeneratorTests {
|
||||
.hasSpringBootStarterDependency('web') // Added by war packaging
|
||||
.hasSpringBootStarterDependency('test')
|
||||
.hasDependenciesCount(4)
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -29,8 +29,6 @@ import static org.junit.Assert.assertNull
|
||||
*/
|
||||
class ProjectRequestTests {
|
||||
|
||||
private static final String DEFAULT_APPLICATION_NAME = 'FooBarApplication'
|
||||
|
||||
@Rule
|
||||
public final ExpectedException thrown = ExpectedException.none()
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ class GradleBuildAssert {
|
||||
GradleBuildAssert validateProjectRequest(ProjectRequest request) {
|
||||
hasArtifactId(request.artifactId).hasVersion(request.version).
|
||||
hasBootVersion(request.bootVersion).hasJavaVersion(request.javaVersion)
|
||||
|
||||
}
|
||||
|
||||
GradleBuildAssert hasArtifactId(String artifactId) {
|
||||
|
||||
@@ -56,7 +56,6 @@ class PomAssert {
|
||||
hasGroupId(request.groupId).hasArtifactId(request.artifactId).hasVersion(request.version).
|
||||
hasPackaging(request.packaging).hasName(request.name).hasDescription(request.description).
|
||||
hasBootVersion(request.bootVersion).hasJavaVersion(request.javaVersion)
|
||||
|
||||
}
|
||||
|
||||
PomAssert hasGroupId(String groupId) {
|
||||
|
||||
@@ -45,4 +45,5 @@ class TestCounterService implements CounterService {
|
||||
void reset(String metricName) {
|
||||
values[metricName] = 0
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -144,7 +144,6 @@ class MainControllerIntegrationTests extends AbstractInitializrControllerIntegra
|
||||
assertEquals HttpStatus.FOUND, entity.getStatusCode()
|
||||
def expected = "https://repo.spring.io/release/org/springframework/boot/spring-boot-cli/1.1.4.RELEASE/spring-boot-cli-1.1.4.RELEASE-bin.$extension"
|
||||
assertEquals new URI(expected), entity.getHeaders().getLocation()
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -114,7 +114,6 @@ class ProjectGenerationSmokeTests extends AbstractInitializrControllerIntegratio
|
||||
.hasSpringBootStarterDependency('web')
|
||||
.hasSpringBootStarterDependency('data-jpa')
|
||||
.hasSpringBootStarterDependency('test')
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ class HomePage extends Page {
|
||||
$("form").find('input', type: "checkbox", name: "style", value: id)
|
||||
}
|
||||
generateProject { $('form').find('button', name: 'generate-project') }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user