This commit is contained in:
enpy303
2019-10-11 00:25:10 +02:00
2 changed files with 3 additions and 3 deletions

View File

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

View File

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