From e3f842da8c85a5f8ee6eb55fccae49c288269d13 Mon Sep 17 00:00:00 2001 From: rcollier Date: Tue, 19 Mar 2013 22:42:43 +0000 Subject: [PATCH] SMACK-361 Updated test case to fix create temp directory on Windows git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_3_0@13574 b35dd754-fafc-0310-a699-88a17e54d16e --- .../jivesoftware/smackx/entitycaps/EntityCapsManagerTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test-unit/org/jivesoftware/smackx/entitycaps/EntityCapsManagerTest.java b/test-unit/org/jivesoftware/smackx/entitycaps/EntityCapsManagerTest.java index 754bf6d3c..5ae4642a9 100644 --- a/test-unit/org/jivesoftware/smackx/entitycaps/EntityCapsManagerTest.java +++ b/test-unit/org/jivesoftware/smackx/entitycaps/EntityCapsManagerTest.java @@ -216,9 +216,7 @@ public class EntityCapsManagerTest { } public static File createTempDirectory() throws IOException { - String tmpdir = System.getProperty("java.io.tmpdir"); - File tmp; - tmp = File.createTempFile(tmpdir, "entityCaps"); + File tmp = File.createTempFile("entity", "caps"); tmp.delete(); tmp.mkdir(); return tmp;