summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHoracio Sanson <horacio@allm.net>2018-12-05 21:27:02 +0900
committerHoracio Sanson <horacio@allm.net>2018-12-05 21:53:39 +0900
commit3346b200bf6c3cb06359f3f0100d97559e707ddb (patch)
tree909591c0c36cc15138b01bb8cc6fd6c89e0735bf /test
parent92668b6beb9462f46b9e5d0126a33ee46dcb49cf (diff)
downloadale-3346b200bf6c3cb06359f3f0100d97559e707ddb.zip
Fix javalsp command.
The command used to invoke the LSP process was being escaped wrong. Also added a new option to set a different java executable and fixed the documentation.
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/test_javalsp_command_callback.vader6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/command_callback/test_javalsp_command_callback.vader b/test/command_callback/test_javalsp_command_callback.vader
index 1fbfddfb..aedb4a4b 100644
--- a/test/command_callback/test_javalsp_command_callback.vader
+++ b/test/command_callback/test_javalsp_command_callback.vader
@@ -6,5 +6,9 @@ After:
call ale#assert#TearDownLinterTest()
Execute(The javalsp callback should return the correct default value):
- AssertLinter 'java', ale#Escape('java -cp javacs.jar -Xverify:none org.javacs.Main')
+ AssertLinter 'java', ale#Escape('java') . ' -cp javacs.jar -Xverify:none org.javacs.Main'
+Execute(The javalsp java executable should be configurable):
+ let b:ale_java_javalsp_executable = '/bin/foobar'
+
+ AssertLinter '/bin/foobar', ale#Escape('/bin/foobar') . ' -cp javacs.jar -Xverify:none org.javacs.Main'