Skip to content

Commit e99ea38

Browse files
committed
use java.nio for tests
1 parent d78c642 commit e99ea38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google-http-client-test/src/test/java/com/google/api/client/test/util/store/FileDataStoreFactoryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
package com.google.api.client.test.util.store;
1616

17+
import static java.nio.file.Files.createTempDirectory;
1718
import static org.junit.Assert.assertEquals;
1819
import static org.junit.Assert.assertTrue;
1920

2021
import com.google.api.client.util.store.DataStore;
2122
import com.google.api.client.util.store.FileDataStoreFactory;
2223
import com.google.common.collect.ImmutableSet;
23-
import com.google.common.io.Files;
2424
import java.io.File;
2525
import java.io.IOException;
2626
import org.junit.Test;
@@ -34,7 +34,7 @@ public class FileDataStoreFactoryTest extends AbstractDataStoreFactoryTest {
3434

3535
@Override
3636
protected FileDataStoreFactory newDataStoreFactory() throws IOException {
37-
File dataDir = Files.createTempDir();
37+
File dataDir = createTempDirectory("temp").toFile();
3838
dataDir.deleteOnExit();
3939
return new FileDataStoreFactory(dataDir);
4040
}

0 commit comments

Comments
 (0)