Return-Path: X-Original-To: apmail-curator-commits-archive@minotaur.apache.org Delivered-To: apmail-curator-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC15A11A60 for ; Wed, 20 Aug 2014 21:47:22 +0000 (UTC) Received: (qmail 64909 invoked by uid 500); 20 Aug 2014 21:47:22 -0000 Delivered-To: apmail-curator-commits-archive@curator.apache.org Received: (qmail 64837 invoked by uid 500); 20 Aug 2014 21:47:22 -0000 Mailing-List: contact commits-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list commits@curator.apache.org Received: (qmail 64730 invoked by uid 99); 20 Aug 2014 21:47:22 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2014 21:47:22 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 79633982977; Wed, 20 Aug 2014 21:47:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cammckenzie@apache.org To: commits@curator.apache.org Date: Wed, 20 Aug 2014 21:47:26 -0000 Message-Id: In-Reply-To: <90acfc70755a4c84a9eae4022b3253dc@git.apache.org> References: <90acfc70755a4c84a9eae4022b3253dc@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [5/5] git commit: CURATOR-84 - Fixed up formatting CURATOR-84 - Fixed up formatting Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/d5f55177 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/d5f55177 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/d5f55177 Branch: refs/heads/CURATOR-84 Commit: d5f55177f4c7a4bd1e95d1e872d65463909a6d35 Parents: 6b19fe2 Author: Cam McKenzie Authored: Thu Aug 21 07:47:00 2014 +1000 Committer: Cam McKenzie Committed: Thu Aug 21 07:47:00 2014 +1000 ---------------------------------------------------------------------- .../recipes/locks/TestInterProcessMutex.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/d5f55177/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutex.java ---------------------------------------------------------------------- diff --git a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutex.java b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutex.java index c116a50..453de33 100644 --- a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutex.java +++ b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutex.java @@ -111,14 +111,18 @@ public class TestInterProcessMutex extends TestInterProcessMutexBase } @Test - public void testPersistentLock() throws Exception { + public void testPersistentLock() throws Exception + { final CuratorFramework client = CuratorFrameworkFactory.newClient(server.getConnectString(), new RetryOneTime(1)); client.start(); - try { - final InterProcessMutex lock = new InterProcessMutex(client, LOCK_PATH, new StandardLockInternalsDriver() { + try + { + final InterProcessMutex lock = new InterProcessMutex(client, LOCK_PATH, new StandardLockInternalsDriver() + { @Override - public String createsTheLock(CuratorFramework client, String path, byte[] lockNodeBytes) throws Exception { + public String createsTheLock(CuratorFramework client, String path, byte[] lockNodeBytes) throws Exception + { String ourPath; if ( lockNodeBytes != null ) { @@ -145,9 +149,9 @@ public class TestInterProcessMutex extends TestInterProcessMutexBase lock.release(); Assert.assertNull(client.checkExists().forPath(actualLockPath)); } - finally { + finally + { client.close(); } - } }