Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 060C0200D08 for ; Thu, 7 Sep 2017 00:29:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0498916128F; Wed, 6 Sep 2017 22:29:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7130C1609E3 for ; Thu, 7 Sep 2017 00:29:11 +0200 (CEST) Received: (qmail 49746 invoked by uid 500); 6 Sep 2017 22:29:10 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 49736 invoked by uid 99); 6 Sep 2017 22:29:10 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 22:29:10 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 1DD963A00E9 for ; Wed, 6 Sep 2017 22:29:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1807540 - /commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java Date: Wed, 06 Sep 2017 22:29:06 -0000 To: commits@commons.apache.org From: ggregory@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170906222909.1DD963A00E9@svn01-us-west.apache.org> archived-at: Wed, 06 Sep 2017 22:29:12 -0000 Author: ggregory Date: Wed Sep 6 22:29:05 2017 New Revision: 1807540 URL: http://svn.apache.org/viewvc?rev=1807540&view=rev Log: Test clean up: use a .zip extension for temp file and don't hard code class name. Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java?rev=1807540&r1=1807539&r2=1807540&view=diff ============================================================================== --- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java (original) +++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java Wed Sep 6 22:29:05 2017 @@ -73,7 +73,7 @@ public class FileLockTestCase { @Before public void setup() throws IOException { final File zipFile = new File("src/test/resources/test-data/test.zip"); - newZipFile = File.createTempFile("FileLockTestCase", "zip"); + newZipFile = File.createTempFile(getClass().getSimpleName(), ".zip"); newZipFile.deleteOnExit(); FileUtils.copyFile(zipFile, newZipFile); zipFileUri = "zip:file:" + newZipFile.getAbsolutePath() + "!/read-tests/file1.txt";