Skip to content

Commit

Permalink
Merge pull request #29 from h2m/master
Browse files Browse the repository at this point in the history
Added test to check if the Spring Boot context loads.
  • Loading branch information
scottfrederick committed Nov 29, 2017
2 parents 66b8d83 + 2ada509 commit 36f7c54
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Expand Up @@ -64,6 +64,7 @@ dependencies {

// Testing
testCompile "junit:junit"
testCompile "org.springframework.boot:spring-boot-starter-test"
}

jar {
Expand Down
19 changes: 19 additions & 0 deletions src/test/java/org/cloudfoundry/samples/music/ApplicationTests.java
@@ -0,0 +1,19 @@
package org.cloudfoundry.samples.music;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;


@RunWith(SpringRunner.class)
@SpringBootTest()
@ActiveProfiles("in-memory")
public class ApplicationTests {

@Test
public void contextLoads() {
}

}

0 comments on commit 36f7c54

Please sign in to comment.