This commit is contained in:
Stephane Nicoll
2015-02-24 16:02:40 +01:00
parent 3e50bcc101
commit 1a7088e851
10 changed files with 3 additions and 12 deletions

View File

@@ -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.
*/

View File

@@ -53,7 +53,6 @@ class CommandLineHelpGeneratorTest {
assertCommandLineCapabilities(content)
assertThat content, containsString('| foo')
assertThat content, containsString('| foo-desc')
}
@Test

View File

@@ -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

View File

@@ -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()

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -45,4 +45,5 @@ class TestCounterService implements CounterService {
void reset(String metricName) {
values[metricName] = 0
}
}

View File

@@ -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

View File

@@ -114,7 +114,6 @@ class ProjectGenerationSmokeTests extends AbstractInitializrControllerIntegratio
.hasSpringBootStarterDependency('web')
.hasSpringBootStarterDependency('data-jpa')
.hasSpringBootStarterDependency('test')
}
}

View File

@@ -42,7 +42,6 @@ class HomePage extends Page {
$("form").find('input', type: "checkbox", name: "style", value: id)
}
generateProject { $('form').find('button', name: 'generate-project') }
}
}