Merge branch 'master' of https://github.com/enpy303/tutorials
This commit is contained in:
@@ -17,7 +17,7 @@ public class ServiceActivator {
|
||||
this.jdbcTemplate.update("insert into STUDENT values(?)", payload);
|
||||
|
||||
if (payload.toLowerCase().startsWith("fail")) {
|
||||
log.error("Service failure. Test result: {} ", payload);
|
||||
log.error("Service failure. Test result: {}", payload);
|
||||
throw new RuntimeException("Service failure.");
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ public final class TxIntegrationTest {
|
||||
private static final String CONTEXT_CONFIG = "classpath:META-INF/spring/integration/spring-integration-tx-context.xml";
|
||||
|
||||
@Test
|
||||
public void whenFileDoesntStartWithFail_thanTxSuccessful() throws InterruptedException, IOException {
|
||||
public void whenFileDoesntStartWithFail_thenTxSuccessful() throws InterruptedException, IOException {
|
||||
final AbstractApplicationContext context =
|
||||
new ClassPathXmlApplicationContext(CONTEXT_CONFIG);
|
||||
|
||||
@@ -31,7 +31,7 @@ public final class TxIntegrationTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenFileStartsWithFail_thanTxFailed() {
|
||||
public void whenFileStartsWithFail_thenTxFailed() {
|
||||
|
||||
String fileName = System.getProperty("java.io.tmpdir") + "/tx/test2.txt";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user