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:
Andy Wilkinson
2016-11-04 20:57:37 +00:00
parent 1ff1402d9c
commit becf225911
3 changed files with 22 additions and 7 deletions

View File

@@ -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)");
}

View File

@@ -0,0 +1,17 @@
@Configuration
class App {
@Bean
MyService myService() {
return new MyService()
}
}
class MyService {
String sayWorld() {
return "World!"
}
}

View File

@@ -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)
}
}