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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user