spring-boot/spring-boot-cli/test-samples/integration_auto_test.groovy
Stephane Nicoll 7c0c953f81 Add value alias for SpringApplicationConfiguration
Given that Spring Boot uses java config accross the board, a new `value`
attribute is now aliased to the existing `classes` attribute such that
one could write the following:

@SpringApplicationConfiguration(MyConfig.class)
public class MyTest {}

Closes gh-3635
2015-08-19 17:09:34 +02:00

14 lines
191 B
Groovy

@SpringApplicationConfiguration(ReactorApplication)
@IntegrationTest('server.port:0')
class RestTests {
@Autowired
EventBus eventBus
@Test
void test() {
assertNotNull(eventBus)
}
}