From ebe1a4663d41adf670239bf2765b316a2e46f12d Mon Sep 17 00:00:00 2001 From: javanna Date: Fri, 13 Mar 2015 12:53:39 -0700 Subject: [PATCH] [TEST] renamed variables in ScriptServiceTests --- .../org/elasticsearch/script/ScriptServiceTests.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/elasticsearch/script/ScriptServiceTests.java b/src/test/java/org/elasticsearch/script/ScriptServiceTests.java index fad39746f9f..6339874c52b 100644 --- a/src/test/java/org/elasticsearch/script/ScriptServiceTests.java +++ b/src/test/java/org/elasticsearch/script/ScriptServiceTests.java @@ -99,10 +99,10 @@ public class ScriptServiceTests extends ElasticsearchTestCase { @Test public void testScriptsSameNameDifferentLanguage() throws IOException { - Path testFileNoExt = scriptsFilePath.resolve("script.groovy"); - Path testFileWithExt = scriptsFilePath.resolve("script.expression"); - Streams.copy("10".getBytes("UTF-8"), Files.newOutputStream(testFileNoExt)); - Streams.copy("20".getBytes("UTF-8"), Files.newOutputStream(testFileWithExt)); + Path groovyScriptPath = scriptsFilePath.resolve("script.groovy"); + Path expScriptPath = scriptsFilePath.resolve("script.expression"); + Streams.copy("10".getBytes("UTF-8"), Files.newOutputStream(groovyScriptPath)); + Streams.copy("20".getBytes("UTF-8"), Files.newOutputStream(expScriptPath)); resourceWatcherService.notifyNow(); CompiledScript groovyScript = scriptService.compile(GroovyScriptEngineService.NAME, "script", ScriptService.ScriptType.FILE); @@ -120,8 +120,8 @@ public class ScriptServiceTests extends ElasticsearchTestCase { @Test public void testFileScriptCompiledOnceMultipleLangAcronyms() throws IOException { - Path testFileWithExt = scriptsFilePath.resolve("test_script.tst"); - Streams.copy("test_file".getBytes("UTF-8"), Files.newOutputStream(testFileWithExt)); + Path scriptPath = scriptsFilePath.resolve("test_script.tst"); + Streams.copy("test_file".getBytes("UTF-8"), Files.newOutputStream(scriptPath)); resourceWatcherService.notifyNow(); CompiledScript compiledScript1 = scriptService.compile("test", "test_script", ScriptService.ScriptType.FILE);