Added JDBC and @Transactional support to Groovy CLI
* @EnableTransactionManagement triggers spring-tx imports * Field or method of type JdbcTemplate or NamedParameterJdbcTemplate of DataSource triggers spring-jdbc imports
This commit is contained in:
@@ -178,4 +178,11 @@ public class SampleIntegrationTests {
|
||||
assertTrue("Wrong output: " + output, output.contains("Hello World"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void txSample() throws Exception {
|
||||
start("samples/app.xml", "samples/tx.groovy");
|
||||
String output = this.outputCapture.getOutputAndRelease();
|
||||
assertTrue("Wrong output: " + output, output.contains("Foo count="));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user