You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by he...@apache.org on 2013/10/31 23:37:05 UTC

git commit: Improved test fixtures.

Updated Branches:
  refs/heads/master 8d263fd38 -> 1dc855c74


Improved test fixtures.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/1dc855c7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/1dc855c7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/1dc855c7

Branch: refs/heads/master
Commit: 1dc855c7442d60f71900d858b8acc5b889c26d27
Parents: 8d263fd
Author: Henryk Konsek <he...@gmail.com>
Authored: Thu Oct 31 23:36:53 2013 +0100
Committer: Henryk Konsek <he...@gmail.com>
Committed: Thu Oct 31 23:36:53 2013 +0100

----------------------------------------------------------------------
 .../camel/processor/FileIdempotentConsumerCreateRepoTest.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/1dc855c7/camel-core/src/test/java/org/apache/camel/processor/FileIdempotentConsumerCreateRepoTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/processor/FileIdempotentConsumerCreateRepoTest.java b/camel-core/src/test/java/org/apache/camel/processor/FileIdempotentConsumerCreateRepoTest.java
index bdfd923..caa44a3 100644
--- a/camel-core/src/test/java/org/apache/camel/processor/FileIdempotentConsumerCreateRepoTest.java
+++ b/camel-core/src/test/java/org/apache/camel/processor/FileIdempotentConsumerCreateRepoTest.java
@@ -19,6 +19,8 @@ package org.apache.camel.processor;
 import java.io.File;
 import java.io.IOException;
 
+import static java.util.UUID.randomUUID;
+
 import org.apache.camel.spi.IdempotentRepository;
 import org.junit.Assert;
 import org.junit.Test;
@@ -30,9 +32,8 @@ public class FileIdempotentConsumerCreateRepoTest extends Assert {
     @Test
     public void shouldCreateParentOfRepositoryFileStore() throws IOException {
         // Given
-        File tmpDir = new File(System.getProperty("java.io.tmpdir"));
-        File storeParent = new File(tmpDir, "repositoryParent");
-        File store = new File(storeParent, "repository");
+        File parentDirectory = new File("target/repositoryParent_" + randomUUID());
+        File store = new File(parentDirectory, "store");
         IdempotentRepository<String> repo = fileIdempotentRepository(store);
 
         // When