summaryrefslogtreecommitdiff
path: root/core/src/test/java/org/elasticsearch/index/shard/NewPathForShardTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/java/org/elasticsearch/index/shard/NewPathForShardTests.java')
-rw-r--r--core/src/test/java/org/elasticsearch/index/shard/NewPathForShardTests.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/src/test/java/org/elasticsearch/index/shard/NewPathForShardTests.java b/core/src/test/java/org/elasticsearch/index/shard/NewPathForShardTests.java
index 449fd1df96..c3a2d65748 100644
--- a/core/src/test/java/org/elasticsearch/index/shard/NewPathForShardTests.java
+++ b/core/src/test/java/org/elasticsearch/index/shard/NewPathForShardTests.java
@@ -40,7 +40,11 @@ import java.nio.file.Path;
import java.nio.file.attribute.FileAttributeView;
import java.nio.file.attribute.FileStoreAttributeView;
import java.nio.file.spi.FileSystemProvider;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
/** Separate test class from ShardPathTests because we need static (BeforeClass) setup to install mock filesystems... */
public class NewPathForShardTests extends ESTestCase {
@@ -71,7 +75,7 @@ public class NewPathForShardTests extends ESTestCase {
/** Mock file system that fakes usable space for each FileStore */
static class MockUsableSpaceFileSystemProvider extends FilterFileSystemProvider {
-
+
public MockUsableSpaceFileSystemProvider(FileSystem inner) {
super("mockusablespace://", inner);
final List<FileStore> fileStores = new ArrayList<>();
@@ -98,7 +102,7 @@ public class NewPathForShardTests extends ESTestCase {
public MockFileStore(String desc) {
this.desc = desc;
}
-
+
@Override
public String type() {
return "mock";
@@ -204,7 +208,7 @@ public class NewPathForShardTests extends ESTestCase {
// had the most free space, never using the other drive unless new shards arrive
// after the first shards started using storage:
assertNotEquals(result1.getDataPath(), result2.getDataPath());
-
+
nodeEnv.close();
}
}