fix for 14samples build

This commit is contained in:
robokaso
2008-05-15 08:27:46 +00:00
parent a2d92a7db0
commit a81054d18f

View File

@@ -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());