summaryrefslogtreecommitdiff
path: root/core/src/test/java/org/elasticsearch/script/ScriptTests.java
diff options
context:
space:
mode:
authorJack Conradson <osjdconrad@gmail.com>2016-10-26 10:21:22 -0700
committerJack Conradson <osjdconrad@gmail.com>2016-10-26 10:21:22 -0700
commit512a77a633831f0513a47df1555f9759f4fb3d3f (patch)
tree26da187b57a329351b107d57d3ddea52fc35422a /core/src/test/java/org/elasticsearch/script/ScriptTests.java
parentc88452dc80f8ec32aecc7952e41b4fb303f69bee (diff)
Refactor ScriptType to be a top-level class.
Diffstat (limited to 'core/src/test/java/org/elasticsearch/script/ScriptTests.java')
-rw-r--r--core/src/test/java/org/elasticsearch/script/ScriptTests.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/test/java/org/elasticsearch/script/ScriptTests.java b/core/src/test/java/org/elasticsearch/script/ScriptTests.java
index 316a1c8451..c6424fdbdf 100644
--- a/core/src/test/java/org/elasticsearch/script/ScriptTests.java
+++ b/core/src/test/java/org/elasticsearch/script/ScriptTests.java
@@ -66,9 +66,9 @@ public class ScriptTests extends ESTestCase {
private Script createScript(XContent xContent) throws IOException {
final Map<String, Object> params = randomBoolean() ? null : Collections.singletonMap("key", "value");
- ScriptService.ScriptType scriptType = randomFrom(ScriptService.ScriptType.values());
+ ScriptType scriptType = randomFrom(ScriptType.values());
String script;
- if (scriptType == ScriptService.ScriptType.INLINE) {
+ if (scriptType == ScriptType.INLINE) {
try (XContentBuilder builder = XContentBuilder.builder(xContent)) {
builder.startObject();
builder.field("field", randomAsciiOfLengthBetween(1, 5));
@@ -83,7 +83,7 @@ public class ScriptTests extends ESTestCase {
scriptType,
randomFrom("_lang1", "_lang2", null),
params,
- scriptType == ScriptService.ScriptType.INLINE ? xContent.type() : null
+ scriptType == ScriptType.INLINE ? xContent.type() : null
);
}