Simplify CLI integration auto-config test by removing use of Artemis
Artemis seems to be a bit flakey which is causing sporadic build failures, for example due to an NPE in Artemis' code.
This commit is contained in:
@@ -96,7 +96,7 @@ public class TestCommandIntegrationTests {
|
||||
|
||||
@Test
|
||||
public void integrationAutoConfigTest() throws Exception {
|
||||
String output = this.cli.test("integration_auto_test.groovy", "jms.groovy");
|
||||
String output = this.cli.test("integration_auto_test.groovy", "app.groovy");
|
||||
assertThat(output).contains("OK (1 test)");
|
||||
}
|
||||
|
||||
|
||||
17
spring-boot-cli/test-samples/app.groovy
Normal file
17
spring-boot-cli/test-samples/app.groovy
Normal file
@@ -0,0 +1,17 @@
|
||||
@Configuration
|
||||
class App {
|
||||
|
||||
@Bean
|
||||
MyService myService() {
|
||||
return new MyService()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class MyService {
|
||||
|
||||
String sayWorld() {
|
||||
return "World!"
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,14 +1,12 @@
|
||||
import org.springframework.jms.core.JmsTemplate
|
||||
|
||||
@SpringBootTest(classes=JmsExample)
|
||||
class JmsTests {
|
||||
@SpringBootTest(classes=App)
|
||||
class AppTests {
|
||||
|
||||
@Autowired
|
||||
JmsTemplate jmsTemplate
|
||||
MyService myService
|
||||
|
||||
@Test
|
||||
void test() {
|
||||
assertNotNull(jmsTemplate)
|
||||
assertNotNull(myService)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user