mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
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
This commit is contained in:
parent
aab1dcdabe
commit
e3f842da8c
1 changed files with 1 additions and 3 deletions
|
@ -216,9 +216,7 @@ public class EntityCapsManagerTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static File createTempDirectory() throws IOException {
|
public static File createTempDirectory() throws IOException {
|
||||||
String tmpdir = System.getProperty("java.io.tmpdir");
|
File tmp = File.createTempFile("entity", "caps");
|
||||||
File tmp;
|
|
||||||
tmp = File.createTempFile(tmpdir, "entityCaps");
|
|
||||||
tmp.delete();
|
tmp.delete();
|
||||||
tmp.mkdir();
|
tmp.mkdir();
|
||||||
return tmp;
|
return tmp;
|
||||||
|
|
Loading…
Reference in a new issue