Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 63021 invoked from network); 5 Dec 2008 17:04:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2008 17:04:31 -0000 Received: (qmail 3455 invoked by uid 500); 5 Dec 2008 17:04:43 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 3410 invoked by uid 500); 5 Dec 2008 17:04:43 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 3396 invoked by uid 99); 5 Dec 2008 17:04:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2008 09:04:43 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2008 17:03:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4D0E3238897B; Fri, 5 Dec 2008 09:04:10 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r723791 - /cxf/trunk/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java Date: Fri, 05 Dec 2008 17:04:10 -0000 To: commits@cxf.apache.org From: seanoc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081205170410.4D0E3238897B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: seanoc Date: Fri Dec 5 09:04:09 2008 New Revision: 723791 URL: http://svn.apache.org/viewvc?rev=723791&view=rev Log: Reset java.io.tmpdir system property after test to avoid any potential weirdness. Modified: cxf/trunk/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java Modified: cxf/trunk/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java?rev=723791&r1=723790&r2=723791&view=diff ============================================================================== --- cxf/trunk/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java (original) +++ cxf/trunk/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java Fri Dec 5 09:04:09 2008 @@ -11,12 +11,15 @@ @Test public void testTempIODirExists() throws Exception { - + + String originaltmpdir = System.getProperty("java.io.tmpdir"); try { System.setProperty("java.io.tmpdir", "dummy"); FileUtils.createTempFile("foo", "bar"); } catch (RuntimeException e) { assertTrue(e.toString().contains("please set java.io.tempdir to an existing directory")); - } + } finally { + System.setProperty("java.io.tmpdir", originaltmpdir); + } } }