summaryrefslogtreecommitdiff
path: root/core/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponseTests.java
diff options
context:
space:
mode:
authorJason Tedor <jason@tedor.me>2017-04-04 11:04:18 -0400
committerGitHub <noreply@github.com>2017-04-04 11:04:18 -0400
commit3136ed1490e41b4c82b8ee05ff2d224e113ef1b8 (patch)
tree7cdbb7ae2c9421de67930ab386b0253713d048e5 /core/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponseTests.java
parenta01f77210acc50e818ae3e1e9e3c48cb2498fee7 (diff)
Rename random ASCII helper methods
This commit renames the random ASCII helper methods in ESTestCase. This is because this method ultimately uses the random ASCII methods from randomized runner, but these methods actually only produce random strings generated from [a-zA-Z]. Relates #23886
Diffstat (limited to 'core/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponseTests.java')
-rw-r--r--core/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponseTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponseTests.java b/core/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponseTests.java
index 8d64f9a538..2eaf1d4832 100644
--- a/core/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponseTests.java
+++ b/core/src/test/java/org/elasticsearch/action/fieldcaps/FieldCapabilitiesResponseTests.java
@@ -32,11 +32,11 @@ public class FieldCapabilitiesResponseTests extends ESTestCase {
Map<String, Map<String, FieldCapabilities> > fieldMap = new HashMap<> ();
int numFields = randomInt(10);
for (int i = 0; i < numFields; i++) {
- String fieldName = randomAsciiOfLengthBetween(5, 10);
+ String fieldName = randomAlphaOfLengthBetween(5, 10);
int numIndices = randomIntBetween(1, 5);
Map<String, FieldCapabilities> indexFieldMap = new HashMap<> ();
for (int j = 0; j < numIndices; j++) {
- String index = randomAsciiOfLengthBetween(10, 20);
+ String index = randomAlphaOfLengthBetween(10, 20);
indexFieldMap.put(index, FieldCapabilitiesTests.randomFieldCaps());
}
fieldMap.put(fieldName, indexFieldMap);