Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C791101DE for ; Thu, 31 Oct 2013 22:37:06 +0000 (UTC) Received: (qmail 51052 invoked by uid 500); 31 Oct 2013 22:37:06 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 51007 invoked by uid 500); 31 Oct 2013 22:37:06 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 51000 invoked by uid 99); 31 Oct 2013 22:37:06 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Oct 2013 22:37:06 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id BCD436B6A; Thu, 31 Oct 2013 22:37:05 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hekonsek@apache.org To: commits@camel.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: Improved test fixtures. Date: Thu, 31 Oct 2013 22:37:05 +0000 (UTC) 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 Authored: Thu Oct 31 23:36:53 2013 +0100 Committer: Henryk Konsek 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 repo = fileIdempotentRepository(store); // When