Skip to content

Commit

Permalink
Added health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Jun 15, 2015
1 parent f16c468 commit 1ae5491
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
8 changes: 0 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ apply plugin: 'io.spring.dependency-management'
apply plugin: 'net.serenity-bdd.aggregator'
apply plugin: 'cloudfoundry'


jar {
baseName = 'movie-service'
version = '0.0.1-SNAPSHOT'
Expand All @@ -39,7 +38,6 @@ repositories {
}

def serenityCoreVersion = "1.0.56"
def cucumberVersion = "1.2.2"

dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
Expand All @@ -51,18 +49,12 @@ dependencies {
compile 'io.springfox:springfox-swagger2:2.0.1'
compile 'io.springfox:springfox-swagger-ui:2.0.1'

// compile("org.springframework.boot:spring-boot-starter-data-rest")
// compile("org.springframework.boot:spring-boot-starter-integration")
// compile("org.springframework.boot:spring-boot-starter-security")
// compile("org.springframework.boot:spring-boot-starter-ws")

testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile "net.serenity-bdd:serenity-core:${serenityCoreVersion}"
testCompile "net.serenity-bdd:serenity-spring:${serenityCoreVersion}"
testCompile "net.serenity-bdd:serenity-rest-assured:${serenityCoreVersion}"
testCompile "net.serenity-bdd:serenity-cucumber:1.0.16"
testCompile "org.codehaus.groovy:groovy-all:2.3.6"
// testCompile "info.cukes:cucumber-groovy:$cucumberVersion"
testCompile "org.spockframework:spock-core:0.7-groovy-2.0"
testCompile "org.spockframework:spock-spring:0.7-groovy-2.0"
testCompile "org.assertj:assertj-core:3.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
public interface MovieRepository extends MongoRepository<Movie, String> {

public List<Movie> findByDirector(String director);
public Movie findByTitle(String title);
public List<Movie> findByActors(String actor);
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void addMovieToCatalog() {
.content(newMovie)
.post("/movies")
.then().statusCode(200)
.extract().jsonPath().getString("id");
.and().extract().jsonPath().getString("id");
}

@Then("I should be able to find it in the catalog")
Expand Down

0 comments on commit 1ae5491

Please sign in to comment.