Add auto imports for integration testing

JUnit tests can now be @SpringApplicationConfiguration
and @IntegrationTest without any explicit imports. Also
makes @RunWith(SpringJUnit4ClassRunner) optional.

Fixes gh-969
This commit is contained in:
Dave Syer
2014-05-28 10:46:46 +01:00
parent 3d76d9d73b
commit 3d9da64382
6 changed files with 100 additions and 3 deletions

View File

@@ -82,6 +82,12 @@ public class TestCommandIntegrationTests {
assertThat(output, containsString("OK (1 test)"));
}
@Test
public void integrationTest() throws Exception {
String output = this.cli.test("integration.groovy");
assertThat(output, containsString("OK (1 test)"));
}
@Test
public void spockTester() throws Exception {
String output = this.cli.test("spock.groovy");