From a81054d18f9722a101e095a2e6d1ebd7642dbfa2 Mon Sep 17 00:00:00 2001 From: robokaso Date: Thu, 15 May 2008 08:27:46 +0000 Subject: [PATCH] fix for 14samples build --- .../sample/tasklet/SystemCommandTaskletIntegrationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/tasklet/SystemCommandTaskletIntegrationTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/tasklet/SystemCommandTaskletIntegrationTests.java index 865268297..2e7112f24 100644 --- a/spring-batch-samples/src/test/java/org/springframework/batch/sample/tasklet/SystemCommandTaskletIntegrationTests.java +++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/tasklet/SystemCommandTaskletIntegrationTests.java @@ -71,7 +71,7 @@ public class SystemCommandTaskletIntegrationTests extends TestCase { fail(); } catch (SystemCommandException e) { - assertTrue(e.getMessage().contains("did not finish successfully within the timeout")); + assertTrue(e.getMessage().indexOf("did not finish successfully within the timeout") > 0); } } @@ -129,7 +129,7 @@ public class SystemCommandTaskletIntegrationTests extends TestCase { // expected } - File notDirectory = File.createTempFile(this.getClass().getSimpleName(), null); + File notDirectory = File.createTempFile(this.getClass().getName(), null); Assert.state(notDirectory.exists()); Assert.state(!notDirectory.isDirectory());